]> git.treefish.org Git - phys/latscripts.git/commitdiff
added column numberofmeasurements. master
authorAlexander Schmidt <alex@treefish.org>
Wed, 5 Feb 2014 12:11:06 +0000 (13:11 +0100)
committerAlexander Schmidt <alex@treefish.org>
Wed, 5 Feb 2014 12:11:06 +0000 (13:11 +0100)
meanstep.py

index 536e0075cea4170c025fb25160aee233a54cf11b..bdac2b36b6f9bc7e69f32bac25bb2eaaaa3298fb 100755 (executable)
@@ -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")