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