Skip to content

Commit

Permalink
use precip_models_cascade if present
Browse files Browse the repository at this point in the history
  • Loading branch information
mats-knmi committed Oct 1, 2024
1 parent 3d1366b commit c5718cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pysteps/blending/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,10 @@ def forecast(
# only nans or infs. If so, fill it with the zero value.
if np.any(precip_cascade[np.isfinite(precip_cascade)]):
precip_cascade[~np.isfinite(precip_cascade)] = np.nanmin(precip_cascade)
elif precip_models_cascade is not None:
precip_cascade[~np.isfinite(precip_cascade)] = np.nanmin(

Check warning on line 650 in pysteps/blending/steps.py

View check run for this annotation

Codecov / codecov/patch

pysteps/blending/steps.py#L649-L650

Added lines #L649 - L650 were not covered by tests
precip_models_cascade
)
else:
done = False
for t in timesteps:
Expand Down

0 comments on commit c5718cb

Please sign in to comment.