From 484ca891a89a51338298d4ee9200dee8eec2c92b Mon Sep 17 00:00:00 2001 From: Dobson Date: Tue, 19 Mar 2024 20:35:14 +0000 Subject: [PATCH] Update metric_utilities.py debug --- swmmanywhere/metric_utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swmmanywhere/metric_utilities.py b/swmmanywhere/metric_utilities.py index eadf890f..70f6e982 100644 --- a/swmmanywhere/metric_utilities.py +++ b/swmmanywhere/metric_utilities.py @@ -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