Skip to content

Commit

Permalink
Update metric_utilities.py
Browse files Browse the repository at this point in the history
debug
  • Loading branch information
Dobson committed Mar 19, 2024
1 parent 4b82b23 commit 484ca89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swmmanywhere/metric_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def median_nse_by_group(results: pd.DataFrame,
.apply(lambda x: nse(x.value_real, x.value_sim))
.median()
)
if val.shape[0] == 0:
if not isinstance(val, float):
return None
return val

Expand Down

0 comments on commit 484ca89

Please sign in to comment.