Skip to content

Commit

Permalink
Merge pull request #476 from MSco/apply-transforms-compose-h5
Browse files Browse the repository at this point in the history
ENH: applytransforms: dont force compose as nii.gz
  • Loading branch information
stnava authored Jun 15, 2023
2 parents 75912bf + ffbf0e8 commit eec6f88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ants/registration/apply_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ def apply_transforms(fixed, moving, transformlist,
'-r', f,
'-n', interpolator]
args = args + mytx
tfn = '%scomptx.nii.gz' % compose if compose is not None else 'NA'
if compose:
tfn = '%scomptx.nii.gz' % compose if not compose.endswith('.h5') else compose
else:
tfn = 'NA'
if compose is not None:
mycompo = '[%s,1]' % tfn
args = ['-d', fixed.dimension,
Expand Down

0 comments on commit eec6f88

Please sign in to comment.