Skip to content

Commit

Permalink
final fix for events structure
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 authored Sep 21, 2023
1 parent 6d0137e commit 7cc376d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spikeanalysis/spike_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7cc376d

Please sign in to comment.