Skip to content

Commit

Permalink
only resample when resolution is not defined
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
  • Loading branch information
victorgarcia98 committed May 30, 2024
1 parent bcd93ef commit eb29976
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flexmeasures/data/models/generic_assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,8 @@ def search_beliefs(
minimum_resampling_resolution = determine_minimum_resampling_resolution(
[bdf.event_resolution for bdf in bdf_dict.values()]
)
if resolution is not None:
minimum_resampling_resolution = resolution
df_dict = {}
for sensor, bdf in bdf_dict.items():
if bdf.event_resolution > timedelta(0):
Expand Down

0 comments on commit eb29976

Please sign in to comment.