Skip to content

Commit 4634cb1

Browse files
committed
fix: potential fix for nipy#2968 in the context of resolving/rebasing paths
1 parent fd1b51c commit 4634cb1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nipype/interfaces/base/traits_extension.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -536,10 +536,10 @@ def _recurse_on_path_traits(func, thistrait, value, cwd):
536536
elif thistrait.is_trait_type(traits.List):
537537
innertrait, = thistrait.inner_traits
538538
if not isinstance(value, (list, tuple)):
539-
value = _recurse_on_path_traits(func, innertrait, value, cwd)
540-
else:
541-
value = [_recurse_on_path_traits(func, innertrait, v, cwd)
542-
for v in value]
539+
value = [value]
540+
541+
value = [_recurse_on_path_traits(func, innertrait, v, cwd)
542+
for v in value]
543543
elif thistrait.is_trait_type(traits.Dict):
544544
_, innertrait = thistrait.inner_traits
545545
value = {k: _recurse_on_path_traits(func, innertrait, v, cwd)

0 commit comments

Comments
 (0)