phys2bids.io.extract_header_items
- phys2bids.io.extract_header_items(header)[source]
Extract interval, orig_units and orig_names from header.
Extract interval, orig_units and orig_names from header depending on the format (AcqKnowledge and labchart)
- Parameters:
header (list) – list that contains file header
- Returns:
interval (list of strings) – maximun sampling frequency or interval value and unit for the recording
orig_units (list of strings) – contains original channels units
orig_names (list of strings) – contains original channels name
- Raises:
NotImplementedError – If len(header) == 0 and therefore there is no header If Labchart headers cannot be processed If files are not in acq or txt format