Skip to content

Commit 78e6a2c

Browse files
committed
fix: ants registration 2.1.0 collapse files
ants registration does not generate collapsed files if composite transforms are written
1 parent 017a9b1 commit 78e6a2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/ants/registration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ def _list_outputs(self):
709709
outputs[
710710
'reverse_invert_flags'].insert(0, reverseInverseMode)
711711
transformCount += 1
712-
else:
712+
elif not self.inputs.write_composite_transform:
713713
transformCount = 0
714714
isLinear = [any(self._linear_transform_names == t)
715715
for t in self.inputs.transforms]

0 commit comments

Comments
 (0)