diff --git a/docs/gallery/general/plot_read_basics.py b/docs/gallery/general/plot_read_basics.py index 0d684e5f5..d800adbe5 100644 --- a/docs/gallery/general/plot_read_basics.py +++ b/docs/gallery/general/plot_read_basics.py @@ -213,7 +213,9 @@ after = 3.0 # Get the stimulus times for all stimuli -stim_on_times = stimulus_presentation.timestamps[:] +# get_timestamps() works whether the time is stored as an array of timestamps or as +# starting time and sampling rate. +stim_on_times = stimulus_presentation.get_timestamps() for unit in range(3): unit_spike_times = nwbfile.units["spike_times"][unit]