Skip to content

Commit

Permalink
FIX: What
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Sep 30, 2024
1 parent 6a53b07 commit f28ef26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion mne_bids/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ def _handle_participants_reading(participants_fname, raw, subject):
if col_name == "participant_id":
key = "his_id"
elif col_name == "age":
assert "birthday" not in participants_tsv
key = "birthday"

if key not in allowed_keys:
Expand Down
4 changes: 2 additions & 2 deletions mne_bids/tests/test_write.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
cnt_warning2="ignore:.*Could not define the number of bytes automatically."
" Defaulting to 2.",
cnt_warning3="ignore:.*Coordinate frame could not be inferred.*",
no_hand="ignore:.*Not setting subject handedness.:RuntimeWarning:mne",
no_hand=r"ignore:Unable to map.*\n.*subject handedness.*:RuntimeWarning:mne",
no_montage=r"ignore:Not setting position of.*channel found in "
r"montage.*:RuntimeWarning:mne",
)
Expand Down Expand Up @@ -4086,7 +4086,7 @@ def test_unknown_extension(_bids_validate, tmp_path):
raw_fname = data_path / "MEG" / "sample" / "sample_audvis_trunc_raw.fif"

raw = _read_raw_fif(raw_fname)
raw._filenames = (raw.filenames[0].replace(".fif", ".foo"),)
raw._filenames = (Path(str(raw.filenames[0]).replace(".fif", ".foo")),)

# When data is not preloaded, we should raise an exception.
with pytest.raises(ValueError, match="file format not supported by BIDS"):
Expand Down

0 comments on commit f28ef26

Please sign in to comment.