spikeinterface: set_probegroup fails when recording NWB file has sampling rate attribute instead of timestamps

set_probegroup fails when recording NWB file has sampling rate attribute instead of timestamps, e.g.

recording = se.NwbRecordingExtractor(file_path=data_path, electrical_series_path='acquisition/TimeSeries_32000_Hz', \
                                     load_time_vector=True, use_pynwb=True, \
                                     cache=True, stream_cache_path=cache_path)
recording = recording.set_probegroup(probegroup)

It works fine when timestamps are explicitly specified when the recording NWB file is generated.

This is a shortcoming that should be fixed as NWB files can have either specification.

A repost from https://github.com/SpikeInterface/probeinterface/issues/345#issue-3047050100

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 33 (3 by maintainers)

Most upvoted comments

Ah, @pauladkisson already found the cause. We need to discuss the solution. Let’s do this next meeting.