chiark / gitweb /
curveopt: add a commented-out call to synch everything
[moebius3.git] / curveopt.py
index 8825da568db8c789207b441c148de17f8c819f8c..ab27e4458cc98e5fa41b4314229c58e0e07b99a2 100644 (file)
@@ -48,7 +48,7 @@ class OptimisedCurve():
 
     oc._dbg(repr(fc_input))
 
-    findcurve_epsilon = 0.01
+    findcurve_epsilon = 0.0001
 
     cl = ['./findcurve', '%d' % (nt+1), '%.18g' % findcurve_epsilon]
     oc._dbg('STARTING FINDCURVE %s' % cl)
@@ -76,6 +76,8 @@ class OptimisedCurve():
     oc.subproc = subproc
     oc.nt = nt
 
+    #oc._await_subproc()
+
   def _await_subproc(oc):
     subproc = oc.subproc
     if subproc is None: return
@@ -85,9 +87,11 @@ class OptimisedCurve():
 
     while True:
       l = subproc.stdout.readline()
+      if not l:
+        oc._dbg('findcurve EOF')
+        vdbg().crashing('findcurve EOF')
       l = l.rstrip()
       oc._dbg('<< ' + l)
-      if not l: vdbg().crashing('findcurve EOF')
       if not l.startswith('['):
         commentary += ' '
         commentary += l