From: Alexander Schmidt Date: Wed, 5 Feb 2014 12:11:06 +0000 (+0100) Subject: added column numberofmeasurements. X-Git-Url: http://git.treefish.org/~alex/phys/latscripts.git/commitdiff_plain/refs/heads/master?ds=inline added column numberofmeasurements. --- diff --git a/meanstep.py b/meanstep.py index 536e007..bdac2b3 100755 --- a/meanstep.py +++ b/meanstep.py @@ -64,12 +64,12 @@ for fileid in results: float(results[fileid][matchkey][int(meancols[imeancol])-1]) / \ results[fileid][matchkey][ len(results[f[:-4]][matchkey]) - 1 ] - for icol in range(0,len(results[fileid][matchkey])-1): + for icol in range(0,len(results[fileid][matchkey])): sys.stdout.write(str(results[fileid][matchkey][icol])) if writetofile: outfile.write(str(results[fileid][matchkey][icol])); - if icol != len(results[fileid][matchkey])-2: + if icol != len(results[fileid][matchkey])-1: sys.stdout.write("\t") if writetofile: outfile.write("\t")