Skip to content

Commit f5e5f13

Browse files
committed
do not allow duplication of needed_outputs
1 parent f273d18 commit f5e5f13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/pipeline/engine/nodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def needed_outputs(self):
219219
@needed_outputs.setter
220220
def needed_outputs(self, new_outputs):
221221
"""Needed outputs changes the hash, refresh if changed"""
222-
new_outputs = sorted(new_outputs or [])
222+
new_outputs = sorted(list(set(new_outputs or [])))
223223
if new_outputs != self._needed_outputs:
224224
# Reset hash
225225
self._hashvalue = None

0 commit comments

Comments
 (0)