Skip to content

Commit cf6bcba

Browse files
committed
FIX: result.outputs is a Bunch
1 parent 6bd278d commit cf6bcba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

nipype/pipeline/engine/nodes.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -489,14 +489,14 @@ def _save_results(self, result, cwd):
489489
outputs = result.outputs.get()
490490
except TypeError:
491491
outputs = result.outputs.dictcopy() # outputs was a bunch
492-
result.outputs.trait_set(**modify_paths(outputs, relative=True,
493-
basedir=cwd))
492+
result.outputs.set(**modify_paths(outputs, relative=True,
493+
basedir=cwd))
494494

495495
savepkl(resultsfile, result)
496496
logger.debug('saved results in %s', resultsfile)
497497

498498
if result.outputs:
499-
result.outputs.trait_set(**outputs)
499+
result.outputs.set(**outputs)
500500

501501
def _load_resultfile(self, cwd):
502502
"""Load results if it exists in cwd
@@ -543,9 +543,9 @@ def _load_resultfile(self, cwd):
543543
except TypeError:
544544
outputs = result.outputs.dictcopy() # outputs == Bunch
545545
try:
546-
result.outputs.trait_set(**modify_paths(outputs,
547-
relative=False,
548-
basedir=cwd))
546+
result.outputs.set(**modify_paths(outputs,
547+
relative=False,
548+
basedir=cwd))
549549
except FileNotFoundError:
550550
logger.debug('conversion to full path results in '
551551
'non existent file')

0 commit comments

Comments
 (0)