Skip to content

Commit

Permalink
omit globbing transform files with *ToMNI* pattern during template cr…
Browse files Browse the repository at this point in the history
…eation (fixes #8)
  • Loading branch information
tashrifbillah committed Feb 5, 2020
1 parent c7ce6a4 commit f5346e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/buildTemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def warp_bands(imgPath, maskPath, templatePath):
prefix= basename(imgPath).split('.nii')[0]
transPrefix= prefix.replace(f'_b{bshell_b}','')
directory= dirname(imgPath)
warp = glob(pjoin(templatePath, transPrefix + f'*_FA*[!Inverse]Warp.nii.gz'))
trans = glob(pjoin(templatePath, transPrefix + f'*_FA*GenericAffine.mat'))
warp = glob(pjoin(templatePath, transPrefix + f'*_FA*[!ToMNI]1Warp.nii.gz'))
trans = glob(pjoin(templatePath, transPrefix + f'*_FA*[!ToMNI]0GenericAffine.mat'))

# warping the mask
applyXform(maskPath,
Expand Down

0 comments on commit f5346e3

Please sign in to comment.