Skip to content

Commit 0696280

Browse files
authored
FIX: Iterate over cloned traits
Cloned traits are a subset of the original.
1 parent ee6431f commit 0696280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/pipeline/engine/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def _protect_collapses(hastraits):
237237
raw = hastraits.trait_get()
238238
cloned = hastraits.clone_traits().trait_get()
239239

240-
for key in raw:
240+
for key in cloned:
241241
val = raw[key]
242242
c = cloned[key]
243243
if c != val and hasattr(val, '__getitem__') and c == val[0]:

0 commit comments

Comments
 (0)