Skip to content

Commit 7ffffc2

Browse files
committed
FIX: Ensure IntendedFor metadata is a subject-relative path
1 parent b40d23a commit 7ffffc2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sdcflows/utils/wrangler.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,10 @@ def find_estimators(
459459
# The new estimator is IntendedFor the individual targets,
460460
# even if the EPI file is IntendedFor multiple
461461
estimator_md = epi_base_md.copy()
462-
estimator_md["IntendedFor"] = intent
462+
estimator_md["IntendedFor"] = [
463+
str(Path(pathlike).relative_to(subject_root))
464+
for pathlike in intent
465+
]
463466
try:
464467
e = fm.FieldmapEstimation(
465468
[

0 commit comments

Comments
 (0)