Skip to content

Commit 8f39ade

Browse files
dependabot[bot]mne-botlarsoner
authored
[dependabot]: Bump the deps group with 3 updates (#1264)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com> Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
1 parent 9c99a5e commit 8f39ade

3 files changed

Lines changed: 55 additions & 46 deletions

File tree

mne_bids_pipeline/steps/sensor/_06_make_cov.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ def get_input_fnames_cov(
4343
cfg: SimpleNamespace,
4444
subject: str,
4545
session: str | None,
46-
) -> InFilesT:
46+
) -> dict[str, BIDSPath | str]:
4747
cov_type = _get_cov_type(cfg)
48-
in_files = dict()
48+
in_files: InFilesT = dict()
4949
fname_epochs = BIDSPath(
5050
subject=subject,
5151
session=session,
@@ -61,7 +61,10 @@ def get_input_fnames_cov(
6161
root=cfg.deriv_root,
6262
check=False,
6363
)
64-
in_files["report_info"] = fname_epochs.copy().update(processing="clean")
64+
report_info = fname_epochs.copy().update(processing="clean")
65+
assert isinstance(report_info, BIDSPath)
66+
in_files["report_info"] = report_info
67+
in_files_broad: dict[str, BIDSPath | str] = dict()
6568
_update_for_splits(in_files, "report_info", single=True)
6669
for task in cfg.all_tasks:
6770
fname_evoked = fname_epochs.copy().update(
@@ -70,8 +73,10 @@ def get_input_fnames_cov(
7073
if fname_evoked.fpath.exists():
7174
in_files[f"evoked_task-{task}"] = fname_evoked
7275
if cov_type == "custom":
73-
in_files["__unknown_inputs__"] = "custom noise_cov callable"
74-
return in_files
76+
for key, val in in_files.items():
77+
in_files_broad[key] = val
78+
in_files_broad["__unknown_inputs__"] = "custom noise_cov callable"
79+
return in_files_broad
7580
if cov_type == "raw":
7681
assert cfg.noise_cov in ("rest", "emptyroom"), cfg.noise_cov
7782
in_files["raw"] = BIDSPath(
@@ -95,7 +100,9 @@ def get_input_fnames_cov(
95100
key = f"epochs_task-{task}"
96101
in_files[key] = fname_epochs.copy().update(task=task)
97102
_update_for_splits(in_files, key, single=True)
98-
return in_files
103+
for key, val in in_files.items():
104+
in_files_broad[key] = val
105+
return in_files_broad
99106

100107

101108
def compute_cov_rank_from_epochs(

mne_bids_pipeline/tests/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ def pytest_configure(config: pytest.Config) -> None:
8686
ignore:.*filter extracted tar archives.*:DeprecationWarning
8787
# vtk<->NumPy 2.5
8888
ignore:.*Setting the shape on a NumPy array[\S\s]*:DeprecationWarning
89+
# meegkit
90+
ignore:pyriemann\.utils\.mean is deprecated.*:DeprecationWarning
8991
"""
9092
for warning_line in warning_lines.split("\n"):
9193
warning_line = warning_line.strip()

0 commit comments

Comments
 (0)