-
Notifications
You must be signed in to change notification settings - Fork 52
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
Conversation
@@ -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, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
Co-authored-by: Chris Markiewicz <markiewicz@stanford.edu>
This PR adds DWI to the queriable suffixes, and also opens a possibility to modify the default queries.