From a63800887aaf7eec99acfb54bcc88484b1ed116b Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Thu, 26 Feb 2026 16:40:28 +0100 Subject: [PATCH 1/4] test EMG datasets --- src/bids/layout/tests/test_layout_on_examples.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/bids/layout/tests/test_layout_on_examples.py b/src/bids/layout/tests/test_layout_on_examples.py index a1b4e1606..2c0503bdf 100644 --- a/src/bids/layout/tests/test_layout_on_examples.py +++ b/src/bids/layout/tests/test_layout_on_examples.py @@ -61,9 +61,17 @@ def test_layout_on_examples_with_derivatives(dataset, nb_files, bids_examples): ("mrs_fmrs", 169), ("mrs_biggaba", 172), ("mrs_2dmrsi", 67), + ("emg_ConcurrentIndependentUnits", 18), + ("emg_CustomBipolar", 7), + ("emg_CustomBipolarFace", 11), + ("emg_IndependentMod", 7), + ("emg_MultiBodyParts", 10), + ("emg_Multimodal", 21), + ("emg_TwoHDsEMG", 12), + ("emg_TwoWristbands", 10), ], ) def test_layout_on_examples_no_derivatives(dataset, nb_files, bids_examples): layout = BIDSLayout(bids_examples / dataset) files = layout.get() - assert len(files) == nb_files \ No newline at end of file + assert len(files) == nb_files From 7fc5daf3e6734a3a788dbdde39c85d9d65ee3dc0 Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Thu, 26 Feb 2026 16:41:28 +0100 Subject: [PATCH 2/4] sty --- src/bids/layout/tests/test_layout_on_examples.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/bids/layout/tests/test_layout_on_examples.py b/src/bids/layout/tests/test_layout_on_examples.py index 2c0503bdf..67ba88b44 100644 --- a/src/bids/layout/tests/test_layout_on_examples.py +++ b/src/bids/layout/tests/test_layout_on_examples.py @@ -61,14 +61,14 @@ def test_layout_on_examples_with_derivatives(dataset, nb_files, bids_examples): ("mrs_fmrs", 169), ("mrs_biggaba", 172), ("mrs_2dmrsi", 67), - ("emg_ConcurrentIndependentUnits", 18), - ("emg_CustomBipolar", 7), - ("emg_CustomBipolarFace", 11), - ("emg_IndependentMod", 7), - ("emg_MultiBodyParts", 10), - ("emg_Multimodal", 21), - ("emg_TwoHDsEMG", 12), - ("emg_TwoWristbands", 10), + ("emg_ConcurrentIndependentUnits", 18), + ("emg_CustomBipolar", 7), + ("emg_CustomBipolarFace", 11), + ("emg_IndependentMod", 7), + ("emg_MultiBodyParts", 10), + ("emg_Multimodal", 21), + ("emg_TwoHDsEMG", 12), + ("emg_TwoWristbands", 10), ], ) def test_layout_on_examples_no_derivatives(dataset, nb_files, bids_examples): From 9e194636e9ef833e544ae333eb2dfe2bea0fe86d Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Thu, 26 Feb 2026 16:51:56 +0100 Subject: [PATCH 3/4] atlas --- .../layout/tests/test_layout_on_examples.py | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/bids/layout/tests/test_layout_on_examples.py b/src/bids/layout/tests/test_layout_on_examples.py index 67ba88b44..e5b2196ae 100644 --- a/src/bids/layout/tests/test_layout_on_examples.py +++ b/src/bids/layout/tests/test_layout_on_examples.py @@ -69,9 +69,34 @@ def test_layout_on_examples_with_derivatives(dataset, nb_files, bids_examples): ("emg_Multimodal", 21), ("emg_TwoHDsEMG", 12), ("emg_TwoWristbands", 10), + ("eyetracking_binocular", 21), + ("eyetracking_fmri", 30), ], ) def test_layout_on_examples_no_derivatives(dataset, nb_files, bids_examples): layout = BIDSLayout(bids_examples / dataset) files = layout.get() assert len(files) == nb_files + + +@pytest.mark.parametrize( + "dataset, nb_files", + [ + + ("atlas-4S", 48), + ("atlas-AAL", 7), + ("atlas-Destrieux", 7), + ("atlas-DiFuMo", 19), + ("atlas-HarvardOxford", 9), + ("atlas-HOSPA", 27), + ("atlas-Juelich", 9), + ("atlas-Schaefer", 10), + ("atlas-suit", 18), + ("atlas-Talairach", 19), + ], +) +def test_layout_on_examples_derivatives(dataset, nb_files, bids_examples): + """Check n files found in derivative dataset.""" + layout = BIDSLayout(bids_examples / dataset, config="derivatives") + files = layout.get() + assert len(files) == nb_files From 6d24be8f39a4edba78baaa8635f4df91abbe71d6 Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Thu, 26 Feb 2026 16:52:33 +0100 Subject: [PATCH 4/4] xfail --- src/bids/layout/tests/test_layout_on_examples.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bids/layout/tests/test_layout_on_examples.py b/src/bids/layout/tests/test_layout_on_examples.py index e5b2196ae..8df25c114 100644 --- a/src/bids/layout/tests/test_layout_on_examples.py +++ b/src/bids/layout/tests/test_layout_on_examples.py @@ -78,7 +78,7 @@ def test_layout_on_examples_no_derivatives(dataset, nb_files, bids_examples): files = layout.get() assert len(files) == nb_files - +@pytest.mark.xfail(reason="atlas datasets are not fully supported in pybids") @pytest.mark.parametrize( "dataset, nb_files", [