phys2bids.io.load_mat

phys2bids.io.load_mat(filename, chtrig=0)[source]

Populate object phys_input from MATLAB files.

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

  • chtrig (int) – index of trigger channel. !!! ATTENTION: IT’S MEANT TO REPRESENT AN INDEX STARTING FROM 1 !!!

Return type:

BlueprintInput

Note

chtrig is not a 0-based Python index - instead, it’s human readable (i.e., 1-based). This is handy because, when initialising the class, a new channel corresponding to time is added at the beginning - that is already taken into account!

See also

physio_obj.BlueprintInput