From ed14a7a33664070247dfe50b8b29ae1c96e7b2ca Mon Sep 17 00:00:00 2001 From: Falco Weichselbaum <f.weichselbaum@fz-juelich.de> Date: Wed, 7 Jul 2021 14:39:28 +0200 Subject: [PATCH] changed helpers/statistics.py 279 AND 305 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 ad6a368f..757d4ab5 100644 --- a/mlair/helpers/statistics.py +++ b/mlair/helpers/statistics.py @@ -276,7 +276,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: @@ -302,7 +302,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