Skip to content

Commit

Permalink
Backport PR #498: Fix for bug introduced in PR #491 (#498)
Browse files Browse the repository at this point in the history
Fix a bug introduced in 0.11.1 when viewing the asset page with non-instantaneous sensors.

* Fix for bug introduced in PR #491

Signed-off-by: F.N. Claessen <felix@seita.nl>

* Changelog entry

Signed-off-by: F.N. Claessen <felix@seita.nl>

Signed-off-by: F.N. Claessen <felix@seita.nl>
  • Loading branch information
Flix6x committed Sep 6, 2022
1 parent f0767ce commit ab80ae8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions documentation/changelog.rst
Expand Up @@ -2,6 +2,14 @@
FlexMeasures Changelog
**********************

v0.11.2 | September XX, 2022
============================

Bugfixes
-----------
* Fix regression for sensors recording non-instantaneous values [see `PR #498 <http://www.github.com/FlexMeasures/flexmeasures/pull/498>`_]


v0.11.1 | September 5, 2022
============================

Expand Down
2 changes: 1 addition & 1 deletion flexmeasures/data/models/charts/belief_charts.py
Expand Up @@ -72,7 +72,7 @@ def chart_for_multiple_sensors(
**override_chart_specs: dict,
):
sensors_specs = []
condition = (
condition = list(
sensor.event_resolution
for sensor in sensors
if sensor.event_resolution > timedelta(0)
Expand Down
2 changes: 1 addition & 1 deletion flexmeasures/data/models/generic_assets.py
Expand Up @@ -381,7 +381,7 @@ def search_beliefs(
from flexmeasures.data.services.time_series import simplify_index

if sensors:
condition = (
condition = list(
bdf.event_resolution
for bdf in bdf_dict.values()
if bdf.event_resolution > timedelta(0)
Expand Down

0 comments on commit ab80ae8

Please sign in to comment.