Skip to content

Commit

Permalink
fix: return same type of value for traits containing lists
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Aug 2, 2019
1 parent 1823e31 commit f3c3d40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nipype/interfaces/base/traits_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ def _recurse_on_path_traits(func, thistrait, value, cwd):
elif thistrait.is_trait_type(traits.List):
innertrait, = thistrait.inner_traits
if not isinstance(value, (list, tuple)):
value = [value]
return _recurse_on_path_traits(func, innertrait, value, cwd)

value = [_recurse_on_path_traits(func, innertrait, v, cwd)
for v in value]
Expand Down

0 comments on commit f3c3d40

Please sign in to comment.