chiark / gitweb /
helixish: remember to transform back from findcurve basis (!)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 30 Dec 2017 22:29:34 +0000 (22:29 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 30 Dec 2017 22:29:34 +0000 (22:29 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
helixish.py

index c3a1797254d485bb86c71ae16ea1603605365822..27485eac5e965293e7311976f39466fef807ca08 100644 (file)
@@ -252,6 +252,7 @@ class HelixishCurve():
     findcurve_subproc.stdin.flush()
 
     hc.func = symbolic.get_python()
+    hc.findcurve_basis = findcurve_basis
     commentary = ''
 
     while True:
@@ -287,4 +288,5 @@ class HelixishCurve():
       ours[1] = sqrt(dist - hc.threshold)
     asmat = hc.func(*ours)
     p = asmat[:,0]
+    p = augmatmultiply(hc.findcurve_basis, p)
     return p