Skip to content

Commit

Permalink
Expire argument deprecation warnings (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnerini authored Feb 3, 2025
1 parent 5ede008 commit 1cc4b26
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 19 deletions.
2 changes: 1 addition & 1 deletion examples/anvil_nowcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
np.array([0.5]), metadata, threshold=0.1, zerovalue=-15.0
)
forecast_sprog = sprog.forecast(
rainrate_field_db[-3:], velocity, 3, n_cascade_levels=6, R_thr=rainrate_thr[0]
rainrate_field_db[-3:], velocity, 3, n_cascade_levels=6, precip_thr=rainrate_thr[0]
)
forecast_sprog, _ = transformation.dB_transform(
forecast_sprog, threshold=-10.0, inverse=True
Expand Down
4 changes: 2 additions & 2 deletions examples/linda_nowcasts.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
advection,
6,
n_cascade_levels=6,
R_thr=-10.0,
precip_thr=-10.0,
)

# Convert reflectivity nowcast to rain rate
Expand Down Expand Up @@ -146,7 +146,7 @@
6,
40,
n_cascade_levels=6,
R_thr=-10.0,
precip_thr=-10.0,
mask_method="incremental",
kmperpixel=2.0,
timestep=datasource_params["timestep"],
Expand Down
2 changes: 1 addition & 1 deletion examples/plot_ensemble_verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
n_leadtimes,
n_ens_members,
n_cascade_levels=6,
R_thr=-10.0,
precip_thr=-10.0,
kmperpixel=2.0,
timestep=timestep,
decomp_method="fft",
Expand Down
4 changes: 2 additions & 2 deletions examples/plot_steps_nowcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
V,
n_leadtimes,
n_cascade_levels=6,
R_thr=-10.0,
precip_thr=-10.0,
)

# Back-transform to rain rate
Expand Down Expand Up @@ -132,7 +132,7 @@
n_leadtimes,
n_ens_members,
n_cascade_levels=6,
R_thr=-10.0,
precip_thr=-10.0,
kmperpixel=2.0,
timestep=timestep,
noise_method="nonparametric",
Expand Down
9 changes: 0 additions & 9 deletions pysteps/nowcasts/linda.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,9 @@
from scipy import stats

from pysteps import extrapolation, feature, noise
from pysteps.decorators import deprecate_args
from pysteps.nowcasts.utils import nowcast_main_loop


@deprecate_args(
{
"precip_fields": "precip",
"advection_field": "velocity",
"num_ens_members": "n_ens_members",
},
"1.8.0",
)
def forecast(
precip,
velocity,
Expand Down
2 changes: 0 additions & 2 deletions pysteps/nowcasts/sprog.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from pysteps import cascade
from pysteps import extrapolation
from pysteps import utils
from pysteps.decorators import deprecate_args
from pysteps.nowcasts import utils as nowcast_utils
from pysteps.postprocessing import probmatching
from pysteps.timeseries import autoregression, correlation
Expand All @@ -30,7 +29,6 @@
DASK_IMPORTED = False


@deprecate_args({"R": "precip", "V": "velocity", "R_thr": "precip_thr"}, "1.8.0")
def forecast(
precip,
velocity,
Expand Down
2 changes: 0 additions & 2 deletions pysteps/nowcasts/sseps.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
from pysteps import cascade
from pysteps import extrapolation
from pysteps import noise
from pysteps.decorators import deprecate_args
from pysteps.nowcasts import utils as nowcast_utils
from pysteps.postprocessing import probmatching
from pysteps.timeseries import autoregression, correlation
Expand All @@ -39,7 +38,6 @@
dask_imported = False


@deprecate_args({"R": "precip", "V": "velocity"}, "1.8.0")
def forecast(
precip,
metadata,
Expand Down

0 comments on commit 1cc4b26

Please sign in to comment.