Skip to content

Commit

Permalink
Merge pull request #2993 from khl02007/fix_nwbextractor
Browse files Browse the repository at this point in the history
Fix timestamps access in NWB extractor
  • Loading branch information
alejoe91 authored Jun 7, 2024
2 parents ef6d956 + ca354ee commit c49acd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spikeinterface/extractors/nwbextractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ def _fetch_recording_segment_info_backend(self, file, cache, load_time_vector, s
sampling_frequency = 1.0 / np.median(np.diff(timestamps[:samples_for_rate_estimation]))

if load_time_vector and timestamps is not None:
times_kwargs = dict(time_vector=electrical_series.timestamps)
times_kwargs = dict(time_vector=electrical_series["timestamps"])
else:
times_kwargs = dict(sampling_frequency=sampling_frequency, t_start=t_start)

Expand Down

0 comments on commit c49acd0

Please sign in to comment.