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: Pass reference image to unwarp_wf, use reference fieldwarp for single shot #2945

Merged
merged 2 commits into from
Mar 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions fmriprep/workflows/bold/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,9 @@ def _last(inlist):
(initial_boldref_wf, coeff2epi_wf, [
("outputnode.ref_image", "inputnode.target_ref"),
("outputnode.bold_mask", "inputnode.target_mask")]),
(initial_boldref_wf, unwarp_wf, [
("outputnode.ref_image", "inputnode.distorted_ref"),
]),
(coeff2epi_wf, unwarp_wf, [
("outputnode.fmap_coeff", "inputnode.fmap_coeff")]),
(bold_hmc_wf, unwarp_wf, [
Expand Down Expand Up @@ -1266,11 +1269,11 @@ def _last(inlist):
]),
(unwarp_wf, bold_t1_trans_wf, [
# TEMPORARY: For the moment we can't use frame-wise fieldmaps
(("outputnode.fieldwarp", pop_file), "inputnode.fieldwarp"),
(("outputnode.fieldwarp_ref", pop_file), "inputnode.fieldwarp"),
]),
(unwarp_wf, bold_std_trans_wf, [
# TEMPORARY: For the moment we can't use frame-wise fieldmaps
(("outputnode.fieldwarp", pop_file), "inputnode.fieldwarp"),
(("outputnode.fieldwarp_ref", pop_file), "inputnode.fieldwarp"),
]),
])
# fmt:on
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies = [
"psutil >= 5.4",
"pybids >= 0.15.2",
"requests",
"sdcflows ~= 2.2.2",
"sdcflows ~= 2.3.0",
"smriprep @ git+https://github.com/nipreps/smriprep.git@master",
"tedana ~= 0.0.9",
"templateflow >= 23.0.0",
Expand Down