Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff committed Nov 1, 2022
1 parent dc2709f commit 0f170c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mne_bids/tests/test_write.py
Original file line number Diff line number Diff line change
Expand Up @@ -1810,6 +1810,10 @@ def test_snirf(_bids_validate, tmp_path):
assert rawbids.annotations.description[2] == 'Control'
assert raw.times[-1] == rawbids.times[-1]

with pytest.raises(ValueError,
match='The input "format" FIF is not an accepted.*'):
write_raw_bids(raw, bids_path, overwrite=True, format="FIF")

# Test with different optode coordinate frame
raw = _read_raw_snirf(raw_fname, optode_frame="mri")
write_raw_bids(raw, bids_path, overwrite=True)
Expand Down

0 comments on commit 0f170c5

Please sign in to comment.