Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 371 cli command for creating a schedule (#372)
Add CLI command for creating a schedule. Also introduce marshmallow/click validation for quantities. * Rename variable Signed-off-by: F.N. Claessen <felix@seita.nl> * Allow passing an explicit sensor id to find prices Signed-off-by: F.N. Claessen <felix@seita.nl> * Add CLI command to create a schedule Signed-off-by: F.N. Claessen <felix@seita.nl> * Add docstring Signed-off-by: F.N. Claessen <felix@seita.nl> * Expose soc_min, soc_max and roundtrip_efficiency parameters as CLI options, too Signed-off-by: F.N. Claessen <felix@seita.nl> * Allow setting SoC targets Signed-off-by: F.N. Claessen <felix@seita.nl> * Fix attribute Signed-off-by: F.N. Claessen <felix@seita.nl> * Allow use of make_schedule outside of job context Signed-off-by: F.N. Claessen <felix@seita.nl> * Fix SoC target input and corresponding type annotation Signed-off-by: F.N. Claessen <felix@seita.nl> * Add note about current limitations Signed-off-by: F.N. Claessen <felix@seita.nl> * Add notes about units Signed-off-by: F.N. Claessen <felix@seita.nl> * Remove print statement Signed-off-by: F.N. Claessen <felix@seita.nl> * Switch the schedule to the resolution of the power sensor Signed-off-by: F.N. Claessen <felix@seita.nl> * Rename variable in tests, too Signed-off-by: F.N. Claessen <felix@seita.nl> * check parameters: do sensors exist, do we have soc-min and soc-max information available? Signed-off-by: Nicolas Höning <nicolas@seita.nl> * Actually the code expects these soc attributes to be on the sensor Signed-off-by: Nicolas Höning <nicolas@seita.nl> * use utility function to check attribute Signed-off-by: Nicolas Höning <nicolas@seita.nl> * identify sensor by instance, as two may have the same name across assets Signed-off-by: Nicolas Höning <nicolas@seita.nl> * Consistent capitalization Signed-off-by: F.N. Claessen <felix@seita.nl> * Allow unit conversion for individual int/float values Signed-off-by: F.N. Claessen <felix@seita.nl> * Allow unit conversion to and from a percentage of some capacity Signed-off-by: F.N. Claessen <felix@seita.nl> * Test unit conversion to and from a percentage of some capacity Signed-off-by: F.N. Claessen <felix@seita.nl> * CLI scheduling command uses % SoC units by default Signed-off-by: F.N. Claessen <felix@seita.nl> * Round charging schedules Signed-off-by: F.N. Claessen <felix@seita.nl> * Fix calculation of belief time (by handing the problem over to timely beliefs) Signed-off-by: F.N. Claessen <felix@seita.nl> * flake8 Signed-off-by: F.N. Claessen <felix@seita.nl> * fix (thanks mypy) Signed-off-by: F.N. Claessen <felix@seita.nl> * Fix timezone issue for trimming planning window Signed-off-by: F.N. Claessen <felix@seita.nl> * Fix timezone issue for setting SoC targets for schedules crossing DST transitions Signed-off-by: F.N. Claessen <felix@seita.nl> * turn --end parameter into --duration Signed-off-by: Nicolas Höning <nicolas@seita.nl> * Switch efficiency input to % values and add input validation using marshmallow Signed-off-by: F.N. Claessen <felix@seita.nl> * Force users to be specific upon providing input of percentage values or ratios for the round-trip efficiency Signed-off-by: F.N. Claessen <felix@seita.nl> * Fix percentage range and add range example for power quantity Signed-off-by: F.N. Claessen <felix@seita.nl> * Switch validation to return Quantity objects instead of magnitudes Signed-off-by: F.N. Claessen <felix@seita.nl> * Switch SOC input to percentages only Signed-off-by: F.N. Claessen <felix@seita.nl> * Rename factor_id to optimization_context_id Signed-off-by: F.N. Claessen <felix@seita.nl> * Delete obsolete class Signed-off-by: F.N. Claessen <felix@seita.nl> * Rename validator class Signed-off-by: F.N. Claessen <felix@seita.nl> * flake8 and mypy Signed-off-by: F.N. Claessen <felix@seita.nl> Co-authored-by: Nicolas Höning <nicolas@seita.nl>
- Loading branch information
Showing
13 changed files
with
327 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.