From 790011ae3c1baf0ebc911001465443c08e73243b Mon Sep 17 00:00:00 2001 From: Charlie Windolf Date: Mon, 1 Jul 2024 13:51:27 -0700 Subject: [PATCH] Needs out-of-place mul --- src/spikeinterface/generation/drift_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spikeinterface/generation/drift_tools.py b/src/spikeinterface/generation/drift_tools.py index 1f410f4330..cce2e08b58 100644 --- a/src/spikeinterface/generation/drift_tools.py +++ b/src/spikeinterface/generation/drift_tools.py @@ -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)