From 331a4c5775a4ce3989468db7a9eebc2e805e2c57 Mon Sep 17 00:00:00 2001 From: Haiming Zhang Date: Sat, 18 Jul 2015 17:25:05 +0000 Subject: [PATCH] add the number of the re-constructed orientation into the name of output files. --- processing/pre/hybridIA_linODFsampling.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/processing/pre/hybridIA_linODFsampling.py b/processing/pre/hybridIA_linODFsampling.py index 60d50e4e0..22216411d 100755 --- a/processing/pre/hybridIA_linODFsampling.py +++ b/processing/pre/hybridIA_linODFsampling.py @@ -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')) \ No newline at end of file + os.path.splitext(file['name'])[0] +'_'+method+'_'+str(nSamples)+'%s'%('.ang')) \ No newline at end of file