Skip to content

Commit

Permalink
Bug fix related to commit be238b6
Browse files Browse the repository at this point in the history
  • Loading branch information
pulkkins committed Jul 19, 2021
1 parent be238b6 commit 21192cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysteps/noise/fftgenerators.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def initialize_param_2d_fft_filter(field, **kwargs):
L = max(M, N)

# wavenumbers
if L % 2 == 0:
if L % 2 == 1:
wn = np.arange(0, int(L / 2) + 1)
else:
wn = np.arange(0, int(L / 2))
Expand Down

0 comments on commit 21192cb

Please sign in to comment.