From 34ef08c762a51d1e5c2b7e1825568c22562eadd1 Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Mon, 7 May 2012 20:36:58 +0000 Subject: [PATCH] added unique naming of output file --- processing/post/binXY.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/processing/post/binXY.py b/processing/post/binXY.py index 05bcccf10..8fef8a04a 100755 --- a/processing/post/binXY.py +++ b/processing/post/binXY.py @@ -68,7 +68,9 @@ if filenames == []: else: for name in filenames: if os.path.exists(name): - files.append({'name':name, 'input':open(name), 'output':open(os.path.splitext(name)[0]+'_binned'+os.path.splitext(name)[1],'w')}) + files.append({'name':name, \ + 'input':open(name), \ + 'output':open(os.path.splitext(name)[0]+'_binned%i-%i'%(options.data[0],options.data[1])+os.path.splitext(name)[1],'w')}) # ------------------------------------------ loop over input files ---------------------------------------