Skip to content

Commit 1cc4b26

Browse files
authored
Expire argument deprecation warnings (#456)
1 parent 5ede008 commit 1cc4b26

File tree

7 files changed

+6
-19
lines changed

7 files changed

+6
-19
lines changed

examples/anvil_nowcast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
np.array([0.5]), metadata, threshold=0.1, zerovalue=-15.0
100100
)
101101
forecast_sprog = sprog.forecast(
102-
rainrate_field_db[-3:], velocity, 3, n_cascade_levels=6, R_thr=rainrate_thr[0]
102+
rainrate_field_db[-3:], velocity, 3, n_cascade_levels=6, precip_thr=rainrate_thr[0]
103103
)
104104
forecast_sprog, _ = transformation.dB_transform(
105105
forecast_sprog, threshold=-10.0, inverse=True

examples/linda_nowcasts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
advection,
9292
6,
9393
n_cascade_levels=6,
94-
R_thr=-10.0,
94+
precip_thr=-10.0,
9595
)
9696

9797
# Convert reflectivity nowcast to rain rate
@@ -146,7 +146,7 @@
146146
6,
147147
40,
148148
n_cascade_levels=6,
149-
R_thr=-10.0,
149+
precip_thr=-10.0,
150150
mask_method="incremental",
151151
kmperpixel=2.0,
152152
timestep=datasource_params["timestep"],

examples/plot_ensemble_verification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
n_leadtimes,
9696
n_ens_members,
9797
n_cascade_levels=6,
98-
R_thr=-10.0,
98+
precip_thr=-10.0,
9999
kmperpixel=2.0,
100100
timestep=timestep,
101101
decomp_method="fft",

examples/plot_steps_nowcast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
V,
9494
n_leadtimes,
9595
n_cascade_levels=6,
96-
R_thr=-10.0,
96+
precip_thr=-10.0,
9797
)
9898

9999
# Back-transform to rain rate
@@ -132,7 +132,7 @@
132132
n_leadtimes,
133133
n_ens_members,
134134
n_cascade_levels=6,
135-
R_thr=-10.0,
135+
precip_thr=-10.0,
136136
kmperpixel=2.0,
137137
timestep=timestep,
138138
noise_method="nonparametric",

pysteps/nowcasts/linda.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,9 @@
5454
from scipy import stats
5555

5656
from pysteps import extrapolation, feature, noise
57-
from pysteps.decorators import deprecate_args
5857
from pysteps.nowcasts.utils import nowcast_main_loop
5958

6059

61-
@deprecate_args(
62-
{
63-
"precip_fields": "precip",
64-
"advection_field": "velocity",
65-
"num_ens_members": "n_ens_members",
66-
},
67-
"1.8.0",
68-
)
6960
def forecast(
7061
precip,
7162
velocity,

pysteps/nowcasts/sprog.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from pysteps import cascade
1717
from pysteps import extrapolation
1818
from pysteps import utils
19-
from pysteps.decorators import deprecate_args
2019
from pysteps.nowcasts import utils as nowcast_utils
2120
from pysteps.postprocessing import probmatching
2221
from pysteps.timeseries import autoregression, correlation
@@ -30,7 +29,6 @@
3029
DASK_IMPORTED = False
3130

3231

33-
@deprecate_args({"R": "precip", "V": "velocity", "R_thr": "precip_thr"}, "1.8.0")
3432
def forecast(
3533
precip,
3634
velocity,

pysteps/nowcasts/sseps.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
from pysteps import cascade
2727
from pysteps import extrapolation
2828
from pysteps import noise
29-
from pysteps.decorators import deprecate_args
3029
from pysteps.nowcasts import utils as nowcast_utils
3130
from pysteps.postprocessing import probmatching
3231
from pysteps.timeseries import autoregression, correlation
@@ -39,7 +38,6 @@
3938
dask_imported = False
4039

4140

42-
@deprecate_args({"R": "precip", "V": "velocity"}, "1.8.0")
4341
def forecast(
4442
precip,
4543
metadata,

0 commit comments

Comments
 (0)