Open satra opened 10 years ago
I run into something very similar when I was writing the new AddCSVRow interface. In execution, clone()
crashed when duplicating the interface with dynamic inputs.
i think the following will recreate the bug. the interpolation for the cloned node stays at Linear
wf = Workflow('labelflow')
transformer = MapNode(ApplyTransforms(), iterfield=['input_image'], name="transformer")
transformer.inputs.reference_image = ref
transformer.inputs.transforms = T
transformer.inputs.input_image = T1s[:3]
transformer.inputs.dimension = 3
transformer.inputs.invert_transform_flags = [False, False]
transformer_nn = transformer.clone("transformer_nn")
transformer_nn.inputs.input_image = labels[:3]
transformer_nn.inputs.interpolation = 'NearestNeighbor'
@mgxd - could you please look into this when you have a chance?
just noting it here - i ran into some issues yesterday - will try to replicate the issue with code.