Skip to content
Snippets Groups Projects
Commit ed14a7a3 authored by Falco Weichselbaum's avatar Falco Weichselbaum
Browse files

changed helpers/statistics.py 279 AND 305 ahead_names to the actual times,...

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)
parent 01ac28b2
1 merge request!309Draft: Resolve "allow non-monotonic window lead times in helpers/statistics.py ahead_names definition"
Pipeline #72460 passed
......@@ -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']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment