Skip to content

Commit

Permalink
Remove numpy2 style output API
Browse files Browse the repository at this point in the history
  • Loading branch information
tskisner committed Dec 5, 2024
1 parent f76c149 commit b732118
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/toast/fft.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def _debug_plot_tod(tdata, plotroot):
_debug_plot_tod(tdata, f"{debug}_tin_{itod}")

# Forward transform
_ = np.fft.rfft(tdata, out=fdata, norm="backward")
fdata[:] = np.fft.rfft(tdata, norm="backward")

if debug is not None:
# Plot the initial fourier domain buffer
Expand Down Expand Up @@ -318,7 +318,7 @@ def _debug_plot_tod(tdata, plotroot):
_debug_plot_fourier(fdata, f"{debug}_fout_{itod}")

# Inverse transform
_ = np.fft.irfft(fdata, out=tdata, norm="backward")
tdata[:] = np.fft.irfft(fdata, norm="backward")

# Copy back to input array
if debug is not None:
Expand Down

0 comments on commit b732118

Please sign in to comment.