Skip to content

Commit 098d4b8

Browse files
authored
Merge pull request #3094 from satra/fix/get_inputs
fix: restore checking traits or bunch
2 parents 8c781a6 + 76e96fc commit 098d4b8

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.et

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{ "bad_versions" : [ "1.2.1",
2-
"1.2.3"]
3-
}
2+
"1.2.3",
3+
"1.3.0"]
4+
}

nipype/pipeline/engine/nodes.py

+6-1
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)