Skip to content

Commit

Permalink
braindecode_utils: preload automatically set to True
Browse files Browse the repository at this point in the history
  • Loading branch information
smathot committed Aug 9, 2023
1 parent 271b702 commit d748d43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eeg_eyetracking_parser/braindecode_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ def decode_subject(read_subject_kwargs, factors, epochs_kwargs, trigger,
raise ValueError('epochs should >= 2')
if not isinstance(n_fold, int) or epochs < 2:
raise ValueError('n_fold should >= 2')
if not epochs_kwargs.get('preload', True):
raise ValueError('Epochs need to be preloaded')
epochs_kwargs['preload'] = True
dataset, labels, metadata = read_decode_dataset(
read_subject_kwargs, factors, epochs_kwargs, trigger, epochs_query,
window_size=window_size, window_stride=window_stride,
Expand Down

0 comments on commit d748d43

Please sign in to comment.