Skip to content

Commit

Permalink
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 2dfd080 commit e20e0c1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions documentation/changelog.rst
Expand Up @@ -19,6 +19,13 @@ Infrastructure / Support
* Remove bokeh dependency and obsolete UI views [see `PR #476 <http://www.github.com/FlexMeasures/flexmeasures/pull/476>`_]


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 e20e0c1

Please sign in to comment.