File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ def save_skill(
60
60
current_skill ,
61
61
validtime ,
62
62
outdir_path ,
63
- n_models = 1 ,
64
63
window_length = 30 ,
64
+ ** kwargs ,
65
65
):
66
66
"""
67
67
Add the current NWP skill to update today's daily average skill. If the day
@@ -79,8 +79,6 @@ def save_skill(
79
79
outdir_path: string
80
80
Path to folder where the historical skill are stored. Defaults to
81
81
path_workdir from rcparams.
82
- n_models: int, optional
83
- Number of NWP models. Defaults to 1.
84
82
window_length: int, optional
85
83
Length of window (in days) of daily skill that should be retained.
86
84
Defaults to 30.
@@ -124,7 +122,7 @@ def save_skill(
124
122
if (
125
123
past_skill is not None
126
124
and past_skill .shape [2 ] == n_cascade_levels
127
- and past_skill .shape [1 ] == n_models
125
+ and past_skill .shape [1 ] == skill_today [ "mean_skill" ]. shape [ 0 ]
128
126
):
129
127
past_skill = np .append (past_skill , [skill_today ["mean_skill" ]], axis = 0 )
130
128
else :
Original file line number Diff line number Diff line change @@ -974,8 +974,6 @@ def worker(j):
974
974
975
975
t_prev [j ] = t_sub
976
976
977
- forecast_prev [j ] = precip_cascade [j ]
978
-
979
977
if len (R_f_ep_out ) > 0 :
980
978
R_f_ep_out = np .stack (R_f_ep_out )
981
979
Yn_ep_out = np .stack (Yn_ep_out )
@@ -1051,6 +1049,8 @@ def worker(j):
1051
1049
1052
1050
t_prev [j ] = t + 1
1053
1051
1052
+ forecast_prev [j ] = precip_cascade [j ]
1053
+
1054
1054
# 8.5 Blend the cascades
1055
1055
R_f_out = []
1056
1056
You can’t perform that action at this time.
0 commit comments