File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
packages/evaluate/src/weathergen/evaluate Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ def get_data(
116116 else :
117117 points_per_sample = None
118118
119- fsteps_final = fsteps
119+ fsteps_final = []
120120
121121 for fstep in fsteps :
122122 _logger .info (f"RUN { run_id } - { stream } : Processing fstep { fstep } ..." )
@@ -141,9 +141,9 @@ def get_data(
141141 _logger .info (
142142 f"Skipping { stream } sample { sample } forecast step: { fstep } . Dataset is empty."
143143 )
144- fsteps_final .remove (fstep )
145144 continue
146-
145+
146+ fsteps_final .append (fstep )
147147 da_tars_fs .append (target .squeeze ())
148148 da_preds_fs .append (pred .squeeze ())
149149 pps .append (npoints )
@@ -172,11 +172,11 @@ def get_data(
172172 da_tars_fs = da_tars_fs .sel (channel = existing_channels )
173173 da_preds_fs = da_preds_fs .sel (channel = existing_channels )
174174
175- da_tars .append (da_tars_fs )
176- da_preds .append (da_preds_fs )
175+ da_tars .append (da_tars_fs )
176+ da_preds .append (da_preds_fs )
177177 if return_counts :
178178 points_per_sample .loc [{"forecast_step" : fstep }] = np .array (pps )
179-
179+
180180 # Safer than a list
181181 da_tars = {fstep : da for fstep , da in zip (fsteps_final , da_tars , strict = False )}
182182 da_preds = {
You can’t perform that action at this time.
0 commit comments