X-Git-Url: http://git.treefish.org/~alex/phys/latscripts.git/blobdiff_plain/8f950fa3b63c096130559fa770ef451811fc4bec..refs/heads/master:/meanstep.py?ds=sidebyside 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")