add the number of the re-constructed orientation into the name of output files.

This commit is contained in:
Haiming Zhang 2015-07-18 17:25:05 +00:00
parent e08b7bd02e
commit 331a4c5775
1 changed files with 2 additions and 2 deletions

View File

@ -411,7 +411,7 @@ for file in files:
if file['name'] != 'STDIN':
file['output'].close()
os.rename(file['name']+'_tmp',
os.path.splitext(file['name'])[0] +'_'+method+'%s'%('_material.config'))
os.path.splitext(file['name'])[0] +'_'+method+'_'+str(nSamples)+'%s'%('_material.config'))
# write ang file
if options.ang:
@ -434,4 +434,4 @@ for file in files:
if file['name'] != 'STDIN':
file['outang'].close()
os.rename(file['name']+'_ang_tmp',
os.path.splitext(file['name'])[0] +'_'+method+'%s'%('.ang'))
os.path.splitext(file['name'])[0] +'_'+method+'_'+str(nSamples)+'%s'%('.ang'))