]> git.treefish.org Git - phys/latscripts.git/blobdiff - meanstep.py
added column numberofmeasurements.
[phys/latscripts.git] / 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")