Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document & refactor scheduling specs for storage flexibility model #511

Merged
merged 41 commits into from Nov 18, 2022

Commits on Oct 29, 2022

  1. Better documentation of flexibility model for storage in endpoint; re…

    …factor its parameters and handling within the code for readability
    
    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Oct 29, 2022
    Copy the full SHA
    ce8169c View commit details
    Browse the repository at this point in the history
  2. add changelog entry

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Oct 29, 2022
    Copy the full SHA
    3bed7c0 View commit details
    Browse the repository at this point in the history
  3. make tests work, include updating older API versions, make prefer_cha…

    …rging_sooner part of storage specs & an optional parameter in API v3
    
    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Oct 29, 2022
    Copy the full SHA
    1fba29e View commit details
    Browse the repository at this point in the history
  4. use storage_specs in CLI command, as well

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Oct 29, 2022
    Copy the full SHA
    0e9259d View commit details
    Browse the repository at this point in the history
  5. remove default resolution of 15M, for now pass in what you want

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Oct 29, 2022
    Copy the full SHA
    c2b2787 View commit details
    Browse the repository at this point in the history
  6. various review comments

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Oct 29, 2022
    Copy the full SHA
    c0400ae View commit details
    Browse the repository at this point in the history
  7. black

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Oct 29, 2022
    Copy the full SHA
    4718a8a View commit details
    Browse the repository at this point in the history
  8. fix tests

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Oct 29, 2022
    Copy the full SHA
    2eef27d View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2022

  1. always load sensor when checking storage specs

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Oct 31, 2022
    Copy the full SHA
    1f68659 View commit details
    Browse the repository at this point in the history
  2. begin to handle source model and version during scheduling

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Oct 31, 2022
    Copy the full SHA
    2beb928 View commit details
    Browse the repository at this point in the history
  3. we can get multiple sources from our query (in the old setting, when …

    …we use name, but also in the new setting, unless we always include the user_id)
    
    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Oct 31, 2022
    Copy the full SHA
    378caba View commit details
    Browse the repository at this point in the history
  4. give our two in-built schedulers an official __author__ and __version__

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Oct 31, 2022
    Copy the full SHA
    5b48baf View commit details
    Browse the repository at this point in the history
  5. review comments

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Oct 31, 2022
    Copy the full SHA
    b664910 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2022

  1. refactor getting data source for a job to util function; use the actu…

    …al data source ID for this lookup if possible
    
    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Nov 2, 2022
    Copy the full SHA
    e9ff60b View commit details
    Browse the repository at this point in the history
  2. pass sensor to check_storage_specs, as we always have it already

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Nov 2, 2022
    Copy the full SHA
    5fe72dc View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2022

  1. wrap Scheduler in classes, unify data source handling a bit more

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Nov 3, 2022
    Copy the full SHA
    f80171d View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2022

  1. Merge branch 'main' into refactor-scheduling-storage-specs

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Nov 4, 2022
    Copy the full SHA
    c04f0d7 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2022

  1. Support pandas 1.4 (#525)

    Add a pandas version check in initialize_index.
    
    
    * Use initialize_series util function
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    
    * Update initialize_index for pandas>=1.4
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    
    * flake8
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    
    * Use initialize_index or initialize_series in all places where the closed keyword argument was used
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    
    * flake8
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    
    * mypy: PEP 484 prohibits implicit Optional
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    
    * black after mypy
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 10, 2022
    Copy the full SHA
    22cb852 View commit details
    Browse the repository at this point in the history
  2. Stop requiring min/max SoC attributes, which have defaults:

    - Default min = 0
    - Default max = the highest target value, or np.nan if there are no targets, which subsequently maps to infinity in our solver
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 10, 2022
    Copy the full SHA
    dd47dab View commit details
    Browse the repository at this point in the history
  3. Set up device constraint columns for efficiencies in Charge Point sch…

    …eduler, too
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 10, 2022
    Copy the full SHA
    add377f View commit details
    Browse the repository at this point in the history
  4. Derive flow constraints for battery scheduling, too (copied from Char…

    …ge Point scheduler)
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 10, 2022
    Copy the full SHA
    ccab2ee View commit details
    Browse the repository at this point in the history
  5. Refactor: rename BatteryScheduler to StorageScheduler

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 10, 2022
    Copy the full SHA
    6344cb0 View commit details
    Browse the repository at this point in the history
  6. Warn for deprecation of

    schedule_battery and schedule_charging_station
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 10, 2022
    Copy the full SHA
    7f9eced View commit details
    Browse the repository at this point in the history
  7. Use StorageScheduler instead of ChargingStationScheduler

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 10, 2022
    Copy the full SHA
    4bc593c View commit details
    Browse the repository at this point in the history
  8. Deprecate ChargingStationScheduler

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 10, 2022
    Copy the full SHA
    ec40bc0 View commit details
    Browse the repository at this point in the history
  9. Refactor: move StorageScheduler to dedicated module

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 10, 2022
    Copy the full SHA
    6914a4b View commit details
    Browse the repository at this point in the history
  10. Update docstring

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 10, 2022
    Copy the full SHA
    5e6bd4e View commit details
    Browse the repository at this point in the history
  11. fix test

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 10, 2022
    Copy the full SHA
    beb2770 View commit details
    Browse the repository at this point in the history
  12. flake8

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 10, 2022
    Copy the full SHA
    3bf1b97 View commit details
    Browse the repository at this point in the history
  13. Merge remote-tracking branch 'origin/main' into refactor-scheduling-s…

    …torage-specs
    
    # Conflicts:
    #	documentation/changelog.rst
    Flix6x committed Nov 10, 2022
    Copy the full SHA
    ed3284d View commit details
    Browse the repository at this point in the history
  14. Lose the v in version strings; prefer versions showing up as 'version…

    …: 3' over 'version: v3'.
    
    Even though Scheduler versioning does not necessarily need to follow semantic versioning (see discussion here: semver/semver#235), the v is still redundant.
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 10, 2022
    Copy the full SHA
    a9899a2 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2022

  1. Refactor: rename module

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 11, 2022
    Copy the full SHA
    ad22c35 View commit details
    Browse the repository at this point in the history
  2. Deal with empty SoC targets

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 11, 2022
    Copy the full SHA
    4efe883 View commit details
    Browse the repository at this point in the history
  3. Stop wrapping DataFrame representations in logging

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 11, 2022
    Copy the full SHA
    09cf700 View commit details
    Browse the repository at this point in the history
  4. Log warning instead of raising UnknownForecastException, and assume z…

    …ero power values for missing values
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Nov 11, 2022
    Copy the full SHA
    5a3845d View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2022

  1. mention scheduler merging in changelog

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Nov 16, 2022
    Copy the full SHA
    172753d View commit details
    Browse the repository at this point in the history
  2. amend existing data source information to reflect our StorageScheduler

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Nov 16, 2022
    Copy the full SHA
    78250ef View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2022

  1. Merge branch 'main' into refactor-scheduling-storage-specs

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Nov 17, 2022
    Copy the full SHA
    ac2ddcc View commit details
    Browse the repository at this point in the history
  2. add db upgrade notice to changelog

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Nov 17, 2022
    Copy the full SHA
    0bf52dd View commit details
    Browse the repository at this point in the history
  3. Merge branch 'refactor-scheduling-storage-specs' of github.com:FlexMe…

    …asures/flexmeasures into refactor-scheduling-storage-specs
    nhoening committed Nov 17, 2022
    Copy the full SHA
    e1c2b47 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2022

  1. more specific downgrade command

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Nov 18, 2022
    Copy the full SHA
    1368fab View commit details
    Browse the repository at this point in the history