Skip to content

set_probegroup fails when recording NWB file has sampling rate attribute instead of timestamps #345

Closed
@dervinism

Description

@dervinism

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions