check_ieeg_recording_files_exist#

brainsets.utils.bids_utils.check_ieeg_recording_files_exist(bids_root, recording_id)[source]#

Check if iEEG data files corresponding to a BIDS recording_id exist in the BIDS root directory.

Note: The BIDS root directory is the top-level folder of a BIDS dataset. All data and metadata within the dataset are organized relative to this root directory.

Parameters:
  • bids_root (str | Path) – BIDS root directory (e.g., ‘/path/to/bids/root’)

  • recording_id (str) – Recording identifier (e.g., ‘sub-1_task-Sleep_acq-headband’)

Return type:

bool

Returns:

True if at least one iEEG data file is found, False otherwise.