Skip to content

Commit

Permalink
Merge pull request #2466 from DradeAW/patch-1
Browse files Browse the repository at this point in the history
Fix bug in `GaussianFilter`
  • Loading branch information
alejoe91 authored Feb 5, 2024
2 parents e022711 + ffc5a92 commit 6bb7e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spikeinterface/preprocessing/filter_gaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def get_traces(
else:
neg_factor = np.zeros((traces.shape[0],))

filtered_fft = traces_fft * (pos_factor - neg_factor)[:, None]
filtered_fft = traces_fft * (pos_factor * (1 - neg_factor))[:, None]
filtered_traces = np.real(np.fft.ifft(filtered_fft, axis=0))

if np.issubdtype(dtype, np.integer):
Expand Down

0 comments on commit 6bb7e71

Please sign in to comment.