From: Ian Jackson Date: Mon, 27 Nov 2017 12:44:40 +0000 (+0000) Subject: slight debug msg improvements X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=165d1ede304315c420a7a77e979d8596570580f6;p=moebius3.git slight debug msg improvements Signed-off-by: Ian Jackson --- diff --git a/helixish.py b/helixish.py index eebe120..219ec35 100644 --- a/helixish.py +++ b/helixish.py @@ -112,8 +112,10 @@ class HelixishCurve(): start_t = try_t best_st = try_st start_mu = q_plane[2] / (start_s + start_t) + dbg(' ok twoarcs') else: # twoarcs algorithm is not well defined + dbg(' no twoarcs') start_la = 0.1 start_s = dist_pq_plane * .65 start_t = dist_pq_plane * .35 diff --git a/visual b/visual index 8912531..a6f78c4 100755 --- a/visual +++ b/visual @@ -20,7 +20,7 @@ class Visdebug(): def curve(vd, fn): # fn(t) => 3-tuple, 3-list, or similar, for t \elem [0,1] ps = [ fn(t) for t in np.linspace(0,1,11) ] - dbg('Visdebug', ps) + #dbg('Visdebug', ps) curve(pos = ps) def crashing(vd, msg): print("CRASHING - VISDEBUG", msg, file=sys.stderr)