From cb2da6c0a2f4315c6f789ea449c5ad28bf635892 Mon Sep 17 00:00:00 2001 From: zm711 <92116279+zm711@users.noreply.github.com> Date: Wed, 25 Oct 2023 14:19:10 -0400 Subject: [PATCH] add keywords and fix order of arguments --- src/spikeinterface/widgets/peak_activity.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/spikeinterface/widgets/peak_activity.py b/src/spikeinterface/widgets/peak_activity.py index c31c1c0b76..8501d7ef7d 100644 --- a/src/spikeinterface/widgets/peak_activity.py +++ b/src/spikeinterface/widgets/peak_activity.py @@ -95,13 +95,13 @@ def animate_func(i): i0, i1 = np.searchsorted(peaks["sample_index"], [bin_size * i, bin_size * (i + 1)]) local_peaks = peaks[i0:i1] artists = self._plot_one_bin( - rec, - probe, - local_peaks, - dp.with_channel_ids, - dp.bin_duration_s, - dp.with_contact_color, - dp.with_interpolated_map, + rec=rec, + probe=probe, + peaks=local_peaks, + duration=dp.bin_duration_s, + with_channel_ids=dp.with_channel_ids, + with_contact_color=dp.with_contact_color, + with_interpolated_map=dp.with_interpolated_map, ) return artists