Skip to content

Commit

Permalink
set data type of empty array.
Browse files Browse the repository at this point in the history
  • Loading branch information
dboulware committed May 9, 2023
1 parent c36be9a commit d0fea34
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 @@ -86,7 +86,7 @@ def get_fft(

# Resize time data for FFTs
time_data = np.reshape(time_data[: num_ffts * fft_size], (num_ffts, fft_size))
out_data = np.empty(time_data.shape)
out_data = np.empty(time_data.shape, dtype=time_data.dtype)
# Apply the FFT window if provided
if fft_window is not None:
if time_data.size > NUMEXPR_THRESHOLD:
Expand Down

0 comments on commit d0fea34

Please sign in to comment.