Skip to content

Commit

Permalink
Merge pull request #3094 from satra/fix/get_inputs
Browse files Browse the repository at this point in the history
fix: restore checking traits or bunch
  • Loading branch information
effigies authored Nov 12, 2019
2 parents 8c781a6 + 76e96fc commit 098d4b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .et
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{ "bad_versions" : [ "1.2.1",
"1.2.3"]
}
"1.2.3",
"1.3.0"]
}
7 changes: 6 additions & 1 deletion nipype/pipeline/engine/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,12 @@ def _get_inputs(self):
output_value = evaluate_connect_function(
conn[1], conn[2], value)
else:
output_value = getattr(outputs, conn)
output_name = conn
try:
output_value = outputs.trait_get()[output_name]
except AttributeError:
output_value = outputs.dictcopy()[output_name]
logger.debug("output: %s", output_name)

try:
self.set_input(key, deepcopy(output_value))
Expand Down

0 comments on commit 098d4b8

Please sign in to comment.