Skip to content

Commit 902ecda

Browse files
committed
FIX: Name iternode/joinnode something unique
There is a bug deep within nipype workflow connection / join expansions that either: - mistakenly uses node.name rather than node._hierarchy to fetch the relevant node or - reuses a previous JoinNode's `_next_slot_index` In either case, the end result is some funky indexed connection (in this case it was looking for the fields `bold_fsLRJ3` and `bold_fsLRJ4`. I spent some time in the rabbit hole and came out empty-handed, but the easiest solution seems to be just renaming them to something unique. Pain.
1 parent bbb8b5c commit 902ecda

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

nibabies/workflows/bold/resampling.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -496,10 +496,10 @@ def init_bold_fsLR_resampling_wf(
496496
.. workflow::
497497
:graph2use: colored
498498
:simple_form: yes
499-
from fmriprep.workflows.bold.resampling import init_bold_fsLR_resampling_wf
499+
from nibabies.workflows.bold.resampling import init_bold_fsLR_resampling_wf
500500
wf = init_bold_fsLR_resampling_wf(
501501
estimate_goodvoxels=True,
502-
grayord_density='92k',
502+
grayord_density='91k',
503503
omp_nthreads=1,
504504
mem_gb=1,
505505
)
@@ -571,14 +571,14 @@ def init_bold_fsLR_resampling_wf(
571571

572572
itersource = pe.Node(
573573
niu.IdentityInterface(fields=['hemi']),
574-
name='itersource',
574+
name='bold_fslr_itersource',
575575
iterables=[('hemi', ['L', 'R'])],
576576
)
577577

578578
joinnode = pe.JoinNode(
579579
niu.IdentityInterface(fields=['bold_fsLR']),
580-
name='joinnode',
581-
joinsource='itersource',
580+
name='bold_fslr_joinnode',
581+
joinsource='bold_fslr_itersource',
582582
)
583583

584584
outputnode = pe.Node(

0 commit comments

Comments
 (0)