From fef96a031b9bd0897faf2d307ec9ac3425c47af7 Mon Sep 17 00:00:00 2001 From: Falco Weichselbaum <f.weichselbaum@fz-juelich.de> Date: Wed, 7 Jul 2021 14:44:26 +0200 Subject: [PATCH] changed helpers/statistics.py 299 AND 325 ahead_names to the actual times, because non monotonically rising window lead times can occur (it was a simple range before) --- mlair/helpers/statistics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mlair/helpers/statistics.py b/mlair/helpers/statistics.py index 30391998..15cef734 100644 --- a/mlair/helpers/statistics.py +++ b/mlair/helpers/statistics.py @@ -296,7 +296,7 @@ class SkillScores: :return: skill score for each comparison and forecast step """ - ahead_names = list(range(1, window_lead_time + 1)) + ahead_names = list(self.external_data.ahead.data) combinations, combination_strings = self.get_model_name_combinations() skill_score = pd.DataFrame(index=combination_strings) for iahead in ahead_names: @@ -322,7 +322,7 @@ class SkillScores: :return: all CASES as well as all terms """ - ahead_names = list(range(1, window_lead_time + 1)) + ahead_names = list(self.external_data.ahead.data) all_terms = ['AI', 'AII', 'AIII', 'AIV', 'BI', 'BII', 'BIV', 'CI', 'CIV', 'CASE I', 'CASE II', 'CASE III', 'CASE IV'] -- GitLab