From 7cc376d806b659dcd375d8afa93b5a32116324cf Mon Sep 17 00:00:00 2001 From: Zach McKenzie <92116279+zm711@users.noreply.github.com> Date: Thu, 21 Sep 2023 18:07:03 -0400 Subject: [PATCH] final fix for events structure --- src/spikeanalysis/spike_plotter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spikeanalysis/spike_plotter.py b/src/spikeanalysis/spike_plotter.py index 71c2995..c20d0c8 100644 --- a/src/spikeanalysis/spike_plotter.py +++ b/src/spikeanalysis/spike_plotter.py @@ -655,7 +655,7 @@ def _get_event_lengths(self) -> dict: for key, value in stim_dict.items(): stim_lengths[key] = np.mean( - np.array(self.data.digital_events[value]["lengths"]) / self.data._sampling_rate + np.array(self.data.events[value]["lengths"]) / self.data._sampling_rate ) return stim_lengths