Skip to content

Commit

Permalink
Merge pull request #9 from rodekruis/JanvE97-leadtime-temp-fix
Browse files Browse the repository at this point in the history
Update scenario_selector.py - temp fix 0 leadtime
  • Loading branch information
JanvE97 authored Dec 27, 2024
2 parents d7c8000 + 4c5d93f commit d514b1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flash_flood_pipeline/scenario_selection/scenario_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,11 @@ def find_worst_event(self, df_target_hours, district):
df_target_hours[most_severe_event.split("_")[1]] == most_severe_event
].first_valid_index()
event_time = df_target_hours.loc[most_severe_event_index, "time_reference"]
event_time = max(1, event_time) # temporary fix
return most_severe_event, event_time
else:
return "0mm_1hr", 0
# return "0mm_1hr", 0
return "0mm_1hr", 1

def select_scenarios(self):
"""
Expand Down

0 comments on commit d514b1e

Please sign in to comment.