Skip to content

Commit

Permalink
Merge pull request #3115 from cwindolf/drift_hybrid_bug
Browse files Browse the repository at this point in the history
Out-of-place multiply needed when using amplitude scaling in the drifty hybrid recording
  • Loading branch information
alejoe91 authored Jul 2, 2024
2 parents f8b638e + 790011a commit 6bcd2e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spikeinterface/generation/drift_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ def get_traces(

wf = template[start_template:end_template]
if self.amplitude_vector is not None:
wf *= self.amplitude_vector[i]
wf = wf * self.amplitude_vector[i]
traces[start_traces:end_traces] += wf.astype(self.dtype, copy=False)

return traces.astype(self.dtype)
Expand Down

0 comments on commit 6bcd2e6

Please sign in to comment.