Commit 94c83d36 authored by Theo Steininger's avatar Theo Steininger

Fixed bug: NUMPYFFT always used fftn instead of fftn/ifftn

parent 9d4cead3
Pipeline #11538 failed with stages
in 24 minutes and 17 seconds
......@@ -637,7 +637,10 @@ class NUMPYFFT(Transform):
local_val = self._apply_mask(temp_val, mask, axes)
# perform the transformation
result_val = np.fft.fftn(local_val, axes=axes)
if self.codomain.harmonic:
result_val = np.fft.fftn(local_val, axes=axes)
else:
result_val = np.fft.ifftn(local_val, axes=axes)
# Apply domain centering mask
if reduce(lambda x, y: x + y, self.domain.zerocenter):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment