Skip to content

Commit

Permalink
Change np.convolve to np.fftconvolve
Browse files Browse the repository at this point in the history
  • Loading branch information
toni-neurosc committed Jan 26, 2024
1 parent 442044c commit 44f67a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py_neuromodulation/nm_sharpwaves.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def calc_feature(
if filter_name == "no_filter":
self.data_process_sw = data[ch_idx, :]
else:
self.data_process_sw = signal.convolve(
self.data_process_sw = signal.fftconvolve(
data[ch_idx, :], filter, mode="same"
)

Expand Down

0 comments on commit 44f67a6

Please sign in to comment.