From 8786829f2b1a2a8e4c1ca6421f9fb5a41bff1556 Mon Sep 17 00:00:00 2001 From: Juan Escudero Pedrosa Date: Thu, 14 Dec 2023 18:22:01 +0100 Subject: [PATCH] fix nft --- mutis/lib/signal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutis/lib/signal.py b/mutis/lib/signal.py index c604c6b..bbeedb6 100644 --- a/mutis/lib/signal.py +++ b/mutis/lib/signal.py @@ -153,7 +153,7 @@ def lc_gen_psd_nft(times, values): randomised signal.""" k = np.arange(-times.size / 2, times.size / 2) - n = k.size + n = 2* (k.size//2) nft = nfft.nfft_adjoint( (times - (times.max() + times.min()) / 2) / np.ptp(times), values, n, use_fft=True