-
Notifications
You must be signed in to change notification settings - Fork 59
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
Test field map collection #927
base: master
Are you sure you want to change the base?
Conversation
generate_bids_skeleton(str(bids_dir), dset_fmap_intendedfor_bidsuri) | ||
layout = BIDSLayout(str(bids_dir)) | ||
dwi_file = layout.get(suffix='dwi', extension='nii.gz', return_type='filename')[0] | ||
fieldmaps = layout.get_fieldmap(dwi_file, return_list=True) |
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.
BIDSLayout.get_fieldmap
doesn't work on BIDS URIs, so we need to either work around it like SDCFlows does or contribute to PyBIDS to make it work.
generate_bids_skeleton(str(bids_dir), dset_fmap_b0fields) | ||
layout = BIDSLayout(str(bids_dir)) | ||
dwi_file = layout.get(suffix='dwi', extension='nii.gz', return_type='filename')[0] | ||
fieldmaps = layout.get_fieldmap(dwi_file, return_list=True) |
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 don't expect this to work. We probably need custom code like SDCFlows uses.
Changes proposed in this pull request
Documentation that should be reviewed