phys2bids.interfaces.txt.populate_phys_input

phys2bids.interfaces.txt.populate_phys_input(filename, chtrig)[source]

Populate object phys_input, extracts header and deduces from it the format file, afterwards it passes the needed information to the corresponding reading function.

Parameters
  • filename (str) – path to the txt Labchart file

  • chtrig (int) – index of trigger channel

Returns

  • phys_in – Raises

  • ——

  • ValueError – If len(header) == 0 and therefore there is no header If files are not in acq or txt format

See also

physio_obj.BlueprintInput()