From b7321189bb111349a6e7667df913513dc9c3560c Mon Sep 17 00:00:00 2001 From: Theodore Kisner Date: Thu, 5 Dec 2024 13:10:06 -0800 Subject: [PATCH] Remove numpy2 style output API --- src/toast/fft.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/toast/fft.py b/src/toast/fft.py index 4873f27c5..bf78d129f 100644 --- a/src/toast/fft.py +++ b/src/toast/fft.py @@ -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 @@ -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: