Skip to content

Commit

Permalink
set pybids config
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Sep 20, 2024
1 parent eb9a18f commit e6140bd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions giga_connectome/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
from bids.tests import get_test_data_path
from pkg_resources import resource_filename

from nilearn._utils.data_gen import create_fake_bids_dataset


from giga_connectome import utils


Expand Down Expand Up @@ -135,3 +138,20 @@ def test_output_filename_seg(source_file, atlas, atlas_desc, suffix, target):
atlas_desc=atlas_desc,
)
assert target == generated_target


def test_desc_entity_recognised(tmp_path):

create_fake_bids_dataset(tmp_path, n_sub=1, n_ses=1, n_runs=[1, 1])

subjects = ["01"]
template = "MNI"
reindex_bids = True

utils.get_bids_images(
subjects,
template,
tmp_path / "bids_dataset" / "derivatives",
reindex_bids,
bids_filters=None,
)
1 change: 1 addition & 0 deletions giga_connectome/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def get_bids_images(
validate=False,
derivatives=False,
reset_database=reindex_bids,
config=["bids", "derivatives"],
)

layout_get_kwargs = {
Expand Down

0 comments on commit e6140bd

Please sign in to comment.