From 6561c15fd9bea9c33163d4e05843e6e2e555617d Mon Sep 17 00:00:00 2001 From: Omnivanitate Date: Thu, 25 Apr 2024 15:57:45 +0300 Subject: [PATCH] fix(code): Fix convert spectrum to signal default method for complex signal (replace rfft -> ifft). --- signal_design/default_methods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signal_design/default_methods.py b/signal_design/default_methods.py index 08d7b22..6200e96 100644 --- a/signal_design/default_methods.py +++ b/signal_design/default_methods.py @@ -487,7 +487,7 @@ def spectrum2signal( size = time.size if frequency.start < 0.: - amplitude = np.fft.rfft(spectrum, size) + amplitude = np.fft.ifft(spectrum, size) else: amplitude = np.fft.irfft(spectrum, size)