- bounds = map(float, p.stdout.readline().strip(" \r\n").split("\t"))
- p.stdin.write("loop %d pxzoom %s %s %s\n" % (i, str(xz), str(yz), str(-int(s))))
- p.stdin.write("querygpubounds step%d.dat\n" % i)
- while not os.path.isfile("step%d.dat" % i):
- pass
- p.stdin.write("loop %d printfps\n" % fps) # Print an FPS count to signal it is safe to read the file
- fpsout = p.stdout.readline().strip(" \r\n").split("\t")
- #print(str(fpsout))
+ bounds_orig = map(float, p.stdout.readline().strip(" \r\n").split("\t"))
+ except Exception, e:
+ print "%s - Couldn't start - %s" % (binname, str(e))
+ return {"accuracy" : asarray(accuracy),
+ "performance" : asarray(performance)}
+
+ for i in xrange(1,steps,50):
+ try:
+ start_time = time.time()
+ p.stdin.write("loop %d pxzoom %s %s %s\n" % (i, str(xz), str(yz), str(int(s))))
+ p.stdin.write("printbounds\n")
+ bounds = map(float, p.stdout.readline().strip(" \r\n").split("\t"))
+ p.stdin.write("loop %d pxzoom %s %s %s\n" % (i, str(xz), str(yz), str(-int(s))))
+ p.stdin.write("querygpubounds step%d.dat\n" % i)
+ while not os.path.isfile("step%d.dat" % i):
+ pass
+ p.stdin.write("loop %d printspf\n" % fps) # Print an FPS count to signal it is safe to read the file
+ fpsout = p.stdout.readline().strip(" \r\n").split("\t")
+ #print(str(fpsout))