eelbrain.load.besa.dat_set_paths

eelbrain.load.besa.dat_set_paths(path, subjects=[], conditions=[])[source]

Find paths for a set of dat files

Parameters:
  • path (Path | str) – The path to the dat files, contain the placeholders ‘{subject}’ and ‘{condition}’. Can contain *.

  • subjects (list) – Subject identifiers. If the list is empty, they are inferred based on the path and existing files.

  • conditions (list) – Condition labels. If the list is empty, they are inferred based on the path and existing files.

Returns:

ds – Dataset containing the variables ‘subject’, ‘condition’ and ‘path’.

Return type:

Dataset