Skip to content

Commit 9761209

Browse files
oestebaneffigies
andcommitted
Apply suggestions from code review
Co-Authored-By: Chris Markiewicz <effigies@gmail.com>
1 parent 6534ba6 commit 9761209

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/base/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,13 +457,13 @@ def aggregate_outputs(self, runtime=None, needed_outputs=None):
457457
return outputs
458458

459459
# Precalculate the list of output trait names that should be aggregated
460-
aggregate_names = set(predicted_outputs.keys())
460+
aggregate_names = set(predicted_outputs)
461461
if needed_outputs is not None:
462462
aggregate_names = set(needed_outputs).intersection(aggregate_names)
463463

464464
if aggregate_names: # Make sure outputs are compatible
465465
_na_outputs = self._check_version_requirements(outputs)
466-
na_names = aggregate_names.intersection(set(_na_outputs))
466+
na_names = aggregate_names.intersection(_na_outputs)
467467
if na_names:
468468
raise TypeError("""\
469469
Output trait(s) %s not available in version %s of interface %s.\

0 commit comments

Comments
 (0)