We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8fae568 + 1fac0b7 commit c75e355Copy full SHA for c75e355
nipype/interfaces/ants/registration.py
@@ -437,7 +437,9 @@ def _formatMetric(self, index):
437
if isinstance(name_input, list):
438
items = stage_inputs.items()
439
indexes = range(0, len(name_input))
440
- specs = [{k: v[i] for k, v in items} for i in indexes]
+ # dict-comprehension only works with python 2.7 and up
441
+ #specs = [{k: v[i] for k, v in items} for i in indexes]
442
+ specs = [dict([(k, v[i]) for k,v in items]) for i in indexes]
443
else:
444
specs = [stage_inputs]
445
0 commit comments