Skip to content

Commit 0557bc9

Browse files
committed
fix: restore checking traits or bunch
1 parent 8c781a6 commit 0557bc9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

nipype/pipeline/engine/nodes.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,12 @@ def _get_inputs(self):
551551
output_value = evaluate_connect_function(
552552
conn[1], conn[2], value)
553553
else:
554-
output_value = getattr(outputs, conn)
554+
output_name = conn
555+
try:
556+
output_value = outputs.trait_get()[output_name]
557+
except AttributeError:
558+
output_value = outputs.dictcopy()[output_name]
559+
logger.debug("output: %s", output_name)
555560

556561
try:
557562
self.set_input(key, deepcopy(output_value))

0 commit comments

Comments
 (0)