Skip to content

Commit c0d2404

Browse files
committed
Merge pull request #442 from bpinsard/fix/utility
attempt to fix inline function bug
2 parents 6929e80 + b0f2b68 commit c0d2404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def __init__(self, input_names, output_names, function=None, **inputs):
356356
raise Exception('Interface Function does not accept ' \
357357
'function objects defined interactively in a python session')
358358
elif isinstance(function, str):
359-
self.inputs.function_str = function
359+
self.inputs.function_str = dumps(function)
360360
else:
361361
raise Exception('Unknown type of function')
362362
self.inputs.on_trait_change(self._set_function_string, 'function_str')

0 commit comments

Comments
 (0)