Skip to content

Commit

Permalink
fix(code): Fix convert spectrum to signal default method for complex
Browse files Browse the repository at this point in the history
signal (replace rfft -> ifft).
  • Loading branch information
Omnivanitate committed Apr 25, 2024
1 parent 2c24a11 commit 6561c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion signal_design/default_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6561c15

Please sign in to comment.