Skip to content

Commit

Permalink
FIX: Cache
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Jan 30, 2024
1 parent 104b51c commit bbd5940
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/source/v1.6.md.inc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
- Fix minor issues with path handling for cross-talk and calibration files (#834 by @larsoner)
- Fix bug where EEG `reject` params were not used for `ch_types = ["meg", "eeg"]` (#839 by @larsoner)
- Fix bug where implicit `mf_reference_run` could change across invocations of `mne_bids_pipeline`, breaking caching (#839 by @larsoner)
- Fix bug where `--no-cache` had no effect (#839 by @larsoner)

### :medical_symbol: Code health

Expand Down
1 change: 0 additions & 1 deletion mne_bids_pipeline/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ def main():
steps = (steps,)

on_error = "debug" if debug else None
cache = "1" if cache else "0"

processing_stages = []
processing_steps = []
Expand Down
5 changes: 4 additions & 1 deletion mne_bids_pipeline/steps/preprocessing/_09_ptp_reject.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ def drop_ptp(
psd = 30
tags = ("epochs", "reject")
kind = cfg.reject if isinstance(cfg.reject, str) else "reject"
title = "Epochs: after cleaning"
with _open_report(
cfg=cfg, exec_params=exec_params, subject=subject, session=session
) as report:
Expand All @@ -206,6 +207,7 @@ def drop_ptp(
title=f"Epochs: {kind} cleaning",
caption=caption,
tags=tags,
section=title,
replace=True,
)
del caption
Expand All @@ -214,13 +216,14 @@ def drop_ptp(
report.add_html(
html=html,
title=f"Epochs: {kind} thresholds",
section=title,
replace=True,
tags=tags,
)

report.add_epochs(
epochs=epochs,
title="Epochs: after cleaning",
title=title,
psd=psd,
drop_log_ignore=(),
tags=tags,
Expand Down

0 comments on commit bbd5940

Please sign in to comment.