ibllib.io.raw_daq_loaders

Loader functions for various DAQ data formats

Functions

load_channels_tdms

Note: This currently cannot deal with arbitrary groups.

load_raw_daq_tdms

Returns a dict of channel names and values from chmap

load_sync_tdms

param path

The file or folder path of the raw TDMS data file.

load_raw_daq_tdms(path) TdmsFile[source]

Returns a dict of channel names and values from chmap

Parameters
  • path

  • chmap

load_channels_tdms(path, chmap=None, return_fs=False)[source]

Note: This currently cannot deal with arbitrary groups.

Parameters
  • path

  • chmap (dictionary mapping devices names to channel codes: example {"photometry": 'AI0', 'bpod': 'AI1'}) – if None, will read all of available channel from the DAQ

load_sync_tdms(path, sync_map, fs=None, threshold=2.5, floor_percentile=10)[source]
Parameters
  • path (str, pathlib.Path) – The file or folder path of the raw TDMS data file.

  • sync_map (dict) – A map of channel names and channel IDs.

  • fs (float) – Sampling rate in Hz.

  • threshold (float) – The threshold for applying to analogue channels

  • floor_percentile (float) – 10% removes the percentile value of the analog trace before thresholding. This is to avoid DC offset drift.