diff --git a/xrft/xrft.py b/xrft/xrft.py index 5f3e8620..ea4a9e86 100644 --- a/xrft/xrft.py +++ b/xrft/xrft.py @@ -418,7 +418,8 @@ def fft( da.get_axis_num(d) for d in dim if da[d][-1] < da[d][0] ] # handling decreasing coordinates f = fft_fn( - fftm.ifftshift(np.flip(da, axis=reversed_axis), axes=axis_num), axes=axis_num + fftm.ifftshift(np.flip(da, axis=reversed_axis), axes=axis_num), + axes=axis_num, ) else: f = fft_fn(da.data, axes=axis_num)