Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Add DWI to the default queries of BIDS querying #833

Merged
merged 5 commits into from
Nov 15, 2023

Conversation

oesteban
Copy link
Member

This PR adds DWI to the queriable suffixes, and also opens a possibility to modify the default queries.

@@ -223,19 +237,10 @@ def collect_data(
'return_type': 'file',
'subject': participant_label,
'extension': ['.nii', '.nii.gz'],
'session': session_id,
'session': session_id or Query.OPTIONAL,
Copy link
Member

@effigies effigies Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes the meaning of None from Query.NONE, which diverges from pybids semantics. I think that's an okay change, but we should check that we never use None in that way now.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, didn't think of it. Considering that single session and multisession datasets cannot be mixed up in BIDS, I agree this should be okay.

Copy link
Member

@effigies effigies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've got I think all of the major nipreps checked out in one directory, and grepping for uses that include session_id, we only get nibabies. That one looks safe.

One small comment and this is good to go.

niworkflows/utils/bids.py Outdated Show resolved Hide resolved
Co-authored-by: Chris Markiewicz <markiewicz@stanford.edu>
niworkflows/utils/bids.py Outdated Show resolved Hide resolved
@oesteban oesteban merged commit 81bf8f5 into master Nov 15, 2023
42 checks passed
@oesteban oesteban deleted the fix/bids-collect-data-dwi branch November 15, 2023 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants