-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/merge time series schemas (#1127)
* refactor: sync arg name Signed-off-by: F.N. Claessen <felix@seita.nl> * refactor: sync internal property name Signed-off-by: F.N. Claessen <felix@seita.nl> * refactor: flatten elif block Signed-off-by: F.N. Claessen <felix@seita.nl> * refactor: allow string deserialization and allow setting a default source unit for interpreting values without a unit Signed-off-by: F.N. Claessen <felix@seita.nl> * refactor: copy convert method Signed-off-by: F.N. Claessen <felix@seita.nl> * fix: type annotation Signed-off-by: F.N. Claessen <felix@seita.nl> * refactor: copy _serialize method Signed-off-by: F.N. Claessen <felix@seita.nl> * refactor: adapt _serialize method Signed-off-by: F.N. Claessen <felix@seita.nl> * refactor: adapt docstring Signed-off-by: F.N. Claessen <felix@seita.nl> * refactor: update error message Signed-off-by: F.N. Claessen <felix@seita.nl> * refactor: update type annotation Signed-off-by: F.N. Claessen <felix@seita.nl> * refactor: merge schemas Signed-off-by: F.N. Claessen <felix@seita.nl> * refactor: reduce number of blank lines Signed-off-by: F.N. Claessen <felix@seita.nl> * fix: deprecate old classes Signed-off-by: F.N. Claessen <felix@seita.nl> * fix: duplicate import Signed-off-by: F.N. Claessen <felix@seita.nl> * docs: document status quo Signed-off-by: F.N. Claessen <felix@seita.nl> * style: black Signed-off-by: F.N. Claessen <felix@seita.nl> * style: flake8 Signed-off-by: F.N. Claessen <felix@seita.nl> * feature: allow interpreting float values as quantities based on a unit defined elsewhere, and specifically, let the StorageScheduler get its default SoC unit from the soc-unit field, which lets us allow time series values to be specified as string quantities while preserving backwards compatibility Signed-off-by: F.N. Claessen <felix@seita.nl> * fix: maintain backwards compatibility for transforming Float fields into Quantity fields, by returning the magnitude upon deserialization Signed-off-by: F.N. Claessen <felix@seita.nl> * docs: grammar Signed-off-by: F.N. Claessen <felix@seita.nl> * docs: add todo Signed-off-by: F.N. Claessen <felix@seita.nl> * fix: tests Signed-off-by: F.N. Claessen <felix@seita.nl> * style: black Signed-off-by: F.N. Claessen <felix@seita.nl> * docs: update V2G flex-model Signed-off-by: F.N. Claessen <felix@seita.nl> * docs: update trigger endpoint examples Signed-off-by: F.N. Claessen <felix@seita.nl> * docs: update other tutorials Signed-off-by: F.N. Claessen <felix@seita.nl> * docs: update scheduling feature section Signed-off-by: F.N. Claessen <felix@seita.nl> * feat: convert schedule results ffrom MW to sensor unit Signed-off-by: Victor Garcia Reolid <victor@seita.nl> * feat: minimum list length for soc-gain and soc-usage Signed-off-by: F.N. Claessen <felix@seita.nl> * refactor: apply default SoC unit to all fields starting with "soc_" Signed-off-by: F.N. Claessen <felix@seita.nl> * refactor: move warning Signed-off-by: F.N. Claessen <felix@seita.nl> * Revert "refactor: move warning" This reverts commit 8cfe9fd. * fix: update test Signed-off-by: F.N. Claessen <felix@seita.nl> * refactor: move deserialization logic to dedicated class methods Signed-off-by: F.N. Claessen <felix@seita.nl> * docs: fix comment about converting time series using to_unit Signed-off-by: F.N. Claessen <felix@seita.nl> * refactor: rename new schema Signed-off-by: F.N. Claessen <felix@seita.nl> * refactor: sync code order: 1) Sensor, 2) time series, 3) Quantity Signed-off-by: F.N. Claessen <felix@seita.nl> * fix: add test and add missing logic for handling a list of dictionaries representing a time series Signed-off-by: F.N. Claessen <felix@seita.nl> * fix: check for real numeric values Signed-off-by: F.N. Claessen <felix@seita.nl> * docs: changelog entries Signed-off-by: F.N. Claessen <felix@seita.nl> * docs: fix typo Signed-off-by: F.N. Claessen <felix@seita.nl> * style: be more explicit about requiring the soc-unit field to be set Signed-off-by: F.N. Claessen <felix@seita.nl> * docs: mention the new Marshmallow field Signed-off-by: F.N. Claessen <felix@seita.nl> * docs: advise setting a unit per field explicitly Signed-off-by: F.N. Claessen <felix@seita.nl> * refactor: simplify if statement Signed-off-by: F.N. Claessen <felix@seita.nl> * refactor: move soc-unit guesswork into schema Signed-off-by: F.N. Claessen <felix@seita.nl> --------- Signed-off-by: F.N. Claessen <felix@seita.nl> Signed-off-by: Victor Garcia Reolid <victor@seita.nl> Signed-off-by: Felix Claessen <30658763+Flix6x@users.noreply.github.com> Co-authored-by: Victor Garcia Reolid <victor@seita.nl>
- Loading branch information
1 parent
9f12e30
commit a128275
Showing
20 changed files
with
658 additions
and
258 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
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.