Skip to content

Commit

Permalink
Fix full-epochs decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
hoechenberger committed Oct 30, 2023
1 parent da9eb4b commit 7a6816c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mne_bids_pipeline/steps/sensor/_02_decoding_full_epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ def run_epochs_decoding(

epochs = mne.read_epochs(in_files.pop("epochs"))
_restrict_analyze_channels(epochs, cfg)
epochs.crop(cfg.decoding_epochs_tmin, cfg.decoding_epochs_tmax)

# We define the epochs and the labels
if isinstance(cfg.conditions, dict):
Expand All @@ -112,6 +111,9 @@ def run_epochs_decoding(
[epochs[epochs_conds[0]], epochs[epochs_conds[1]]], verbose="error"
)

# Crop to the desired analysis interval.
epochs.crop(cfg.decoding_epochs_tmin, cfg.decoding_epochs_tmax)

n_cond1 = len(epochs[epochs_conds[0]])
n_cond2 = len(epochs[epochs_conds[1]])

Expand Down

0 comments on commit 7a6816c

Please sign in to comment.