Skip to content

Commit

Permalink
BUG: final atlas filename issue #2 => resolved by copying FinalAtlasD…
Browse files Browse the repository at this point in the history
…TI_average.nrrd to FinalAtlasDTI.nrrd at the end of final resampling
  • Loading branch information
scalphunters committed Oct 7, 2021
1 parent d33ff5e commit 4906174
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Scripts/template_atlasbuilding.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ def CheckFileExists ( File, case, caseID ) : # returns 1 if file exists or has b
IterDir="Loop_"+str(cnt)+"/"
PrevIterDir="Loop_"+str(cnt-1)+"/"
DTIAverage2 = FinalResampPath + "/Second_Resampling/" + IterDir+ "/FinalAtlasDTI_averaged.nrrd"
DTITemp = FinalResampPath + "/Second_Resampling/" + IterDir+ "/FinalAtlasDTI.nrrd"
AverageCommand2 = m_SoftPath[6]+" " #dtiaverage

if cnt==0:
Expand Down Expand Up @@ -763,7 +764,7 @@ def CheckFileExists ( File, case, caseID ) : # returns 1 if file exists or has b
print("\n=> Moving final images to final folders")
case = 0
LastIterDir="Loop_"+str(m_nbLoopsDTIReg-1)+"/"

shutil.copy(DTIAverage2,DTITemp)
while case < len(allcases):
if SecondResampRecomputed[case] :
GlobalDefField2 = FinalResampPath + "/Second_Resampling/" + LastIterDir + allcasesIDs[case] + "_GlobalDisplacementField.nrrd"
Expand Down

0 comments on commit 4906174

Please sign in to comment.