eelbrain.load.besa.dat_set

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

Load multiple dat files as a Dataset

Parameters:
  • 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 ‘src’ (the source estimate).

Return type:

Dataset

See also

dat_set_paths

find just the paths to check whether all files are found

add_dat_set_epochs

add epochs to the Dataset returned by dat_set_paths()