Skip to content

Commit 14f2374

Browse files
committed
graph submission fix
1 parent 8e9c2ba commit 14f2374

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

nipype/pipeline/plugins/base.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,12 +575,14 @@ def _get_args(self, node, keywords):
575575
if hasattr(node, "plugin_args") and isinstance(node.plugin_args, dict) and keyword in node.plugin_args:
576576
if keyword == "template" and os.path.isfile(node.plugin_args[keyword]):
577577
tmp_value = open(node.plugin_args[keyword]).read()
578+
else:
579+
tmp_value = node.plugin_args[keyword]
580+
578581
if 'overwrite' in node.plugin_args and node.plugin_args['overwrite']:
579582
value = tmp_value
580583
else:
581584
value += tmp_value
582-
else:
583-
values += (value, )
585+
values += (value, )
584586
return values
585587

586588
def _submit_graph(self, pyfiles, dependencies, nodes):

0 commit comments

Comments
 (0)