Skip to content

Commit

Permalink
Merge branch 'main' into fix/report-offsets-in-local-time
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Claessen <30658763+Flix6x@users.noreply.github.com>
  • Loading branch information
Flix6x committed Jun 23, 2023
2 parents f65bf6b + caabe68 commit c55d0d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions documentation/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Bugfixes
* Avoid saving any :abbr:`NaN (not a number)` values to the database, when calling ``flexmeasures add report`` [see `PR #735 <https://www.github.com/FlexMeasures/flexmeasures/pull/735>`_]
* Fix browser console error when loading asset or sensor page with only a single data point [see `PR #732 <https://www.github.com/FlexMeasures/flexmeasures/pull/732>`_]
* Fix defaults for the ``--start-offset`` and ``--end-offset` options to ``flexmeasures add report``, which weren't being interpreted in the local timezone of the reporting sensor [see `PR #744 <https://www.github.com/FlexMeasures/flexmeasures/pull/744>`_]
* Relax constraint for overlaying plot traces for sensors with various resolutions, making it possible to show e.g. two price sensors in one chart, where one of them records hourly prices and the other records quarter-hourly prices [see `PR #743 <https://www.github.com/FlexMeasures/flexmeasures/pull/743>`_]


v0.14.0 | June 15, 2023
Expand Down
6 changes: 3 additions & 3 deletions flexmeasures/data/models/charts/belief_charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ def create_line_layer(
event_value_field_definition: dict,
):
event_resolutions = list(set([sensor.event_resolution for sensor in sensors]))
assert (
len(event_resolutions) == 1
), "Sensors shown within one row must share the same event resolution."
assert all(res == timedelta(0) for res in event_resolutions) or all(
res != timedelta(0) for res in event_resolutions
), "Sensors shown within one row must all be instantaneous (zero event resolution) or all be non-instantatneous (non-zero event resolution)."
event_resolution = event_resolutions[0]
line_layer = {
"mark": {
Expand Down

0 comments on commit c55d0d1

Please sign in to comment.