phys2bids.interfaces.txt.populate_phys_input

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

Populate object phys_input.

Extract header and deduce from it the format file, afterwards pass the needed information to the corresponding reading function.

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

  • chtrig (int) – index of trigger channel, starting in 1 for human readability

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()