Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into test
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Aug 15, 2024
2 parents e51b04c + d66be75 commit f286231
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ nosetests.xml
coverage.xml
*,cover
.hypothesis/
cov.xml

# Translations
*.mo
Expand Down
2 changes: 1 addition & 1 deletion bids-examples
2 changes: 1 addition & 1 deletion bids/layout/tests/test_layout_on_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_layout_on_examples_with_derivatives(dataset, nb_files, bids_examples):
("asl005", 10),
("ds001", 134), # with anat and func data
("eeg_cbm", 104),
("ds000246", 54), # with meg data
("ds000246", 19), # with meg data (excludes all files in .ds folders)
("genetics_ukbb", 96), # with dwi data
("ieeg_visual_multimodal", 148), # also with fmap data; ignore stimmuli folder
("pet001", 12),
Expand Down
18 changes: 1 addition & 17 deletions bids/layout/tests/test_path_building.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,23 +135,7 @@ def test_path_building_in_raw_scope(dataset, bids_examples):
assert path == bf.path

@pytest.mark.parametrize("scope", ["raw"])
@pytest.mark.parametrize(
"dataset",
[
pytest.param(
"ds000247",
marks=pytest.mark.xfail(strict=True,
reason="meg ds folder"
),
),
pytest.param(
"ds000246",
marks=pytest.mark.xfail(strict=True,
reason="meg ds folder"
),
),
],
)
@pytest.mark.parametrize("dataset", ["ds000247", "ds000246"])
def test_path_building_on_examples_with_derivatives_meg_ds_folder(dataset, scope, bids_examples):
layout = BIDSLayout(bids_examples / dataset, derivatives=True)
files = layout.get(subject=".*", datatype=".*", regex_search = True, scope=scope)
Expand Down
1 change: 1 addition & 0 deletions bids/layout/tests/test_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
def testvalidator():
return BIDSValidator()


def test_layout_with_validation():
data_dir = join(get_test_data_path(), '7t_trt')
layout1 = BIDSLayout(data_dir, validate=True)
Expand Down

0 comments on commit f286231

Please sign in to comment.