Skip to content

Commit

Permalink
Don't use list input to file.delTemporary()
Browse files Browse the repository at this point in the history
This functionality was added in a different branch of MRtrix3, and is not supported in 3.0_RC3.
  • Loading branch information
Lestropie committed May 25, 2018
1 parent b7a474f commit a018a0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mrtrix3_connectome.py
Expand Up @@ -556,7 +556,9 @@ def findAtlasFile(filepath, description):
run.command('ANTS 3 -m PR[' + template_image_path + ', T1_registered_histmatch.nii, 1, 2] -o ANTS -r Gauss[2,0] -t SyN[0.5] -i 30x99x11 --use-Histogram-Matching')
transformed_atlas_path = 'atlas_transformed.nii'
run.command('WarpImageMultiTransform 3 ' + parc_image_path + ' ' + transformed_atlas_path + ' -R ' + template_image_path + ' -i ANTSAffine.txt ANTSInverseWarp.nii --use-NN')
file.delTemporary([ 'ANTSWarp.nii', 'ANTSInverseWarp.nii', 'ANTSAffine.txt' ])
file.delTemporary('ANTSWarp.nii')
file.delTemporary('ANTSInverseWarp.nii')
file.delTemporary('ANTSAffine.txt')

elif template_registration_software == 'fsl':

Expand Down

0 comments on commit a018a0c

Please sign in to comment.