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

Test field map collection #927

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from
Draft

Test field map collection #927

wants to merge 15 commits into from

Conversation

tsalo
Copy link
Member

@tsalo tsalo commented Feb 25, 2025

Changes proposed in this pull request

Documentation that should be reviewed

@tsalo tsalo added the testing label Feb 25, 2025
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)
Copy link
Member Author

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)
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant