Skip to content

Commit

Permalink
Always use cleaned epochs in time-frequency and covariance steps
Browse files Browse the repository at this point in the history
  • Loading branch information
hoechenberger committed Oct 26, 2023
1 parent 5837821 commit a88cc46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions mne_bids_pipeline/steps/sensor/_04_time_frequency.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ def get_input_fnames_time_frequency(
subject: str,
session: Optional[str],
) -> dict:
processing = None
if cfg.spatial_filter is not None:
processing = "clean"
fname_epochs = BIDSPath(
subject=subject,
session=session,
Expand All @@ -46,7 +43,7 @@ def get_input_fnames_time_frequency(
space=cfg.space,
datatype=cfg.datatype,
root=cfg.deriv_root,
processing=processing,
processing="clean",
suffix="epo",
extension=".fif",
check=False,
Expand Down
3 changes: 1 addition & 2 deletions mne_bids_pipeline/steps/sensor/_06_make_cov.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def get_input_fnames_cov(
) -> dict:
cov_type = _get_cov_type(cfg)
in_files = dict()
processing = "clean" if cfg.spatial_filter is not None else None
fname_epochs = BIDSPath(
subject=subject,
session=session,
Expand All @@ -48,7 +47,7 @@ def get_input_fnames_cov(
space=cfg.space,
extension=".fif",
suffix="epo",
processing=processing,
processing="clean",
datatype=cfg.datatype,
root=cfg.deriv_root,
check=False,
Expand Down

0 comments on commit a88cc46

Please sign in to comment.