gastropy.read_bids_physio#
- gastropy.read_bids_physio(tsv_path, json_path=None)[source]#
Read a BIDS
_physio.tsv.gzand its companion JSON sidecar.- Parameters:
- Returns:
Dictionary with keys:
signal: ndarray, shape(n_channels, n_samples)sfreq: float — sampling frequency in Hzcolumns: list of str — column names from the JSONColumnsfield
Plus every other key-value pair from the JSON sidecar (e.g.
StartTime,TR,Source) stored as-is.- Return type:
- Raises:
FileNotFoundError – If the TSV or JSON file does not exist.
ValueError – If the JSON sidecar is missing required BIDS fields (
SamplingFrequency,Columns).