Skip to content

Commit

Permalink
Merge pull request #10 from rodekruis/JanvE97-revert-temp-lead-time-fix
Browse files Browse the repository at this point in the history
revert-temp-lead-time-fix
  • Loading branch information
JanvE97 authored Jan 2, 2025
2 parents d514b1e + cdcc10e commit b036f08
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions flash_flood_pipeline/scenario_selection/scenario_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,9 @@ 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", 1
return "0mm_1hr", 0

def select_scenarios(self):
"""
Expand Down

0 comments on commit b036f08

Please sign in to comment.