Skip to content

Commit

Permalink
ANY -> OPTIONAL for sessions and runs
Browse files Browse the repository at this point in the history
  • Loading branch information
htwangtw committed Sep 22, 2023
1 parent 730be93 commit 916e155
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions giga_connectome/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def test_get_bids_images():
)
reindex_bids = True
bids_filters = {
"bold": {"task": "probabilisticclassification", "run": "1"}
}
"bold": {"task": "probabilisticclassification", "run": "1"},
} # task and run should apply to both mask and bold
subj_data, _ = utils.get_bids_images(
subjects, template, bids_dir, reindex_bids, bids_filters
)
Expand Down
4 changes: 2 additions & 2 deletions giga_connectome/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ def get_bids_images(
layout_get_kwargs = {
"return_type": "object",
"subject": subjects,
"session": Query.ANY,
"session": Query.OPTIONAL,
"space": template,
"task": Query.ANY,
"run": Query.ANY,
"run": Query.OPTIONAL,
"extension": ".nii.gz",
}
queries = {
Expand Down

0 comments on commit 916e155

Please sign in to comment.