Skip to content

Commit

Permalink
Pass axis argument when transforming back from Fourier space
Browse files Browse the repository at this point in the history
Ensures transposed arrays (which don't necessarily have the 'zeta'
dimension last) are handled correctly.
  • Loading branch information
johnomotani committed Oct 16, 2021
1 parent fa8b2d4 commit d01d28c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbout/boutdataarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def _shift_z(self, zShift):

data_shifted_fft = data_fft * np.exp(phase.data)

data_shifted = fft.irfft(data_shifted_fft, n=nz)
data_shifted = fft.irfft(data_shifted_fft, n=nz, axis=axis)

# Return a DataArray with the same attributes as self, but values from
# data_shifted
Expand Down

0 comments on commit d01d28c

Please sign in to comment.