Skip to content

Commit b0f2b68

Browse files
author
bpinsard
committed
attempt to fix inline function bug
1 parent a78ca37 commit b0f2b68

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)