Skip to content

Commit 12ceeb4

Browse files
committed
importorskip
1 parent 4bb3af1 commit 12ceeb4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

mne_bids/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
PYBV_VERSION = "0.7.3"
1212
EEGLABIO_VERSION = "0.0.2"
13+
CURRYREADER_VERSION = "0.1.2"
1314

1415
DOI = """https://doi.org/10.21105/joss.01896"""
1516

mne_bids/tests/test_write.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
)
4848
from mne_bids.config import (
4949
BIDS_COORD_FRAME_DESCRIPTIONS,
50+
CURRYREADER_VERSION,
5051
EEGLABIO_VERSION,
5152
PYBV_VERSION,
5253
REFERENCES,
@@ -3373,8 +3374,12 @@ def test_sidecar_encoding(_bids_validate, tmp_path):
33733374
@testing.requires_testing_data
33743375
def test_convert_eeg_formats(dir_name, fmt, fname, reader, tmp_path):
33753376
"""Test conversion of EEG/iEEG manufacturer fmt to BrainVision/EDF."""
3376-
pytest.importorskip("pybv", PYBV_VERSION)
3377-
pytest.importorskip("eeglabio", EEGLABIO_VERSION)
3377+
if dir_name == "BrainVision" or fmt == "BrainVision":
3378+
pytest.importorskip("pybv", PYBV_VERSION)
3379+
elif dir_name == "EEGLAB" or fmt == "EEGLAB":
3380+
pytest.importorskip("eeglabio", EEGLABIO_VERSION)
3381+
elif dir_name == "curry" or fmt == "curry":
3382+
pytest.importorskip("curryreader", CURRYREADER_VERSION)
33783383
bids_root = tmp_path / fmt
33793384
raw_fname = data_path / dir_name / fname
33803385

0 commit comments

Comments
 (0)