Skip to content

Commit e40b2f1

Browse files
authored
Merge pull request #374 from nipreps/fix/relative-paths-phasediff-wf
FIX: Nipype workflows like to be passed absolute paths (phasediff fieldmap)
2 parents e46cb5e + 20436c5 commit e40b2f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdcflows/fieldmaps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,10 +450,10 @@ def get_workflow(self, **kwargs):
450450
kwargs["mode"] = str(self.method).rpartition(".")[-1].lower()
451451
self._wf = init_fmap_wf(**kwargs)
452452
self._wf.inputs.inputnode.magnitude = [
453-
str(f.path) for f in self.sources if f.suffix.startswith("magnitude")
453+
str(f.path.absolute()) for f in self.sources if f.suffix.startswith("magnitude")
454454
]
455455
self._wf.inputs.inputnode.fieldmap = [
456-
(str(f.path), f.metadata)
456+
(str(f.path.absolute()), f.metadata)
457457
for f in self.sources
458458
if f.suffix in ("fieldmap", "phasediff", "phase2", "phase1")
459459
]

0 commit comments

Comments
 (0)