Skip to content

Commit

Permalink
fix numexpr casting in fft windowing
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanielloNTIA committed May 8, 2023
1 parent 5caf4f7 commit d2e2db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scos_actions/signal_processing/fft.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def get_fft(
# Apply the FFT window if provided
if fft_window is not None:
if time_data.size > NUMEXPR_THRESHOLD:
ne.evaluate("time_data*fft_window", out=time_data)
ne.evaluate("time_data*fft_window", out=time_data, casting="same_kind")
else:
time_data *= fft_window

Expand Down

0 comments on commit d2e2db3

Please sign in to comment.