Skip to content

Commit 0f9383f

Browse files
authored
fix typo in kwargs (#538)
1 parent a6a6e5b commit 0f9383f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pysteps/noise/fftgenerators.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ def initialize_nonparam_2d_ssft_filter(field, **kwargs):
499499
win_fun = kwargs.get("win_fun", "tukey")
500500
overlap = kwargs.get("overlap", 0.3)
501501
war_thr = kwargs.get("war_thr", 0.1)
502-
rm_rdisc = kwargs.get("rm_disc", True)
502+
rm_rdisc = kwargs.get("rm_rdisc", True)
503503
fft = kwargs.get("fft_method", "numpy")
504504
if type(fft) == str:
505505
fft_shape = field.shape if len(field.shape) == 2 else field.shape[1:]
@@ -601,7 +601,7 @@ def initialize_nonparam_2d_nested_filter(field, gridres=1.0, **kwargs):
601601
Threshold for the minimum fraction of rain needed for computing the FFT
602602
(default 0.1).
603603
rm_rdisc: bool
604-
Whether or not to remove the rain/no-rain disconituity. It assumes no-rain
604+
Whether or not to remove the rain/no-rain discontinuity. It assumes no-rain
605605
pixels are assigned with lowest value.
606606
fft_method: str or tuple
607607
A string or a (function,kwargs) tuple defining the FFT method to use
@@ -626,7 +626,7 @@ def initialize_nonparam_2d_nested_filter(field, gridres=1.0, **kwargs):
626626
max_level = kwargs.get("max_level", 3)
627627
win_fun = kwargs.get("win_fun", "tukey")
628628
war_thr = kwargs.get("war_thr", 0.1)
629-
rm_rdisc = kwargs.get("rm_disc", True)
629+
rm_rdisc = kwargs.get("rm_rdisc", True)
630630
fft = kwargs.get("fft_method", "numpy")
631631
if type(fft) == str:
632632
fft_shape = field.shape if len(field.shape) == 2 else field.shape[1:]

0 commit comments

Comments
 (0)