cibrrig.preprocess.extract_sync_times

Extract digital signals from the NI and IMEC Streams

Attributes

_log

MAP_TO_INTERVALS

OMIT_SIGNALS

Functions

sync2alf(session_path)

Extract all data from the digital sync line in the ALF format

run(session_path[, debug, no_display])

Extract synchronization times from the session data.

main(session_path, debug, no_display)

Script entry point to extract digital (sync) signals.

Module Contents

cibrrig.preprocess.extract_sync_times._log[source]
cibrrig.preprocess.extract_sync_times.MAP_TO_INTERVALS = [][source]
cibrrig.preprocess.extract_sync_times.OMIT_SIGNALS = ['imec_sync', 'record'][source]
cibrrig.preprocess.extract_sync_times.sync2alf(session_path)[source]

Extract all data from the digital sync line in the ALF format

Data that matches OMIT_SIGNALS is not extracted. Data that matches MAP_TO_INTERVALS is extracted as intervals (2 columns, start and end times)

cibrrig.preprocess.extract_sync_times.run(session_path, debug=False, no_display=False)[source]

Extract synchronization times from the session data.

Extract times, directions, and channels for all digital signals in the session data.

Parameters:
  • session_path (str, Path) – Path to the session data.

  • debug (bool, optional) – If True, sets logging level to DEBUG. Defaults to False.

  • no_display (bool, optional) – If True, disables display of plots. Defaults to False.

Returns:

None

cibrrig.preprocess.extract_sync_times.main(session_path, debug, no_display)[source]

Script entry point to extract digital (sync) signals.

Parameters:
  • session_path (str) – Path to the session data.

  • debug (bool) – If True, sets logging level to DEBUG.

  • no_display (bool) – If True, disables display of plots.

Returns:

None