Skip to content

Commit

Permalink
Merge pull request #1635 from ANTsX/ants_template_fn_unique
Browse files Browse the repository at this point in the history
BUG: Template input overwritten when basename identical
  • Loading branch information
cookpa authored Dec 14, 2023
2 parents 0ea8e53 + b0c0bf1 commit 659d516
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Scripts/antsMultivariateTemplateConstruction.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1349,6 +1349,7 @@ while [[ $i -lt ${ITERATIONLIMIT} ]];
POO=${OUTPUTNAME}template${k}${IMGbase}
OUTFN=${POO%.*.*}
OUTFN=`basename ${OUTFN}`
OUTFN="${OUTFN}${j}"
DEFORMED="${outdir}/${OUTFN}${l}WarpedToTemplate.nii.gz"

IMGbase=`basename ${IMAGESETARRAY[$j]}`
Expand Down
1 change: 1 addition & 0 deletions Scripts/antsMultivariateTemplateConstruction2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1471,6 +1471,7 @@ while [[ $i -lt ${ITERATIONLIMIT} ]];
IMGbase=`basename ${IMAGESETARRAY[$l]}`
OUTFN=${OUTPUTNAME}template${k}${IMGbase/%?(.nii.gz|.nii)}
OUTFN=`basename ${OUTFN}`
OUTFN="${OUTFN}${j}"
DEFORMED="${outdir}/${OUTFN}${l}WarpedToTemplate.nii.gz"

IMGbase=`basename ${IMAGESETARRAY[$j]}`
Expand Down

0 comments on commit 659d516

Please sign in to comment.