Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Add eSSS #762

Merged
merged 13 commits into from
Jul 18, 2023
2 changes: 2 additions & 0 deletions docs/source/settings/preprocessing/maxfilter.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ tags:
- mf_reference_run
- mf_cal_fname
- mf_ctc_fname
- mf_esss
- mf_esss_reject
- mf_mc
- mf_mc_t_step_min
- mf_mc_t_window
Expand Down
1 change: 1 addition & 0 deletions docs/source/v1.5.md.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Added support for annotating bad segments based on head movement velocity (#757 by @larsoner)
- Added examples of T1 and FLASH BEM to website (#758 by @larsoner)
- Added support for extended SSS (eSSS) in Maxwell filtering (#762 by @larsoner)

[//]: # (### :warning: Behavior changes)

Expand Down
10 changes: 10 additions & 0 deletions mne_bids_pipeline/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,16 @@
```
""" # noqa : E501

mf_esss: int = 0
"""
Number of extended SSS (eSSS) basis projectors to use from empty-room data.
"""

mf_esss_reject: Optional[Dict[str, float]] = None
"""
Rejection parameters to use when computing the extended SSS (eSSS) basis.
"""

mf_mc: bool = False
"""
If True, perform movement compensation on the data.
Expand Down
8 changes: 5 additions & 3 deletions mne_bids_pipeline/_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ def wrapper(*args, **kwargs):
emoji = "🔂"
else:
# Check our output file hashes
out_files_hashes = memorized_func(*args, **kwargs)
# Need to make a copy of kwargs["in_files"] in particular
use_kwargs = copy.deepcopy(kwargs)
out_files_hashes = memorized_func(*args, **use_kwargs)
for key, (fname, this_hash) in out_files_hashes.items():
fname = pathlib.Path(fname)
if not fname.exists():
Expand Down Expand Up @@ -303,8 +305,8 @@ def save_logs(*, config: SimpleNamespace, logs) -> None: # TODO add type


def _update_for_splits(
files_dict: Dict[str, BIDSPath],
key: str,
files_dict: Union[Dict[str, BIDSPath], BIDSPath],
key: Optional[str],
*,
single: bool = False,
allow_missing: bool = False,
Expand Down
Loading
Loading