From: Ian Jackson Date: Wed, 29 Nov 2017 23:17:15 +0000 (+0000) Subject: findcurve execution: report end with [] rather than None X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=e7f7b7d3088c27b570c48c56663766274528a640;p=moebius3.git findcurve execution: report end with [] rather than None Will want this in a moment for siman, which more conveniently prints lots of other guff from GSL. Signed-off-by: Ian Jackson --- diff --git a/findcurve.c b/findcurve.c index 605c60b..6952778 100644 --- a/findcurve.c +++ b/findcurve.c @@ -113,6 +113,6 @@ int main(void) { exit(-1); } - printf("None\n"); + printf("[]\n"); } } diff --git a/helixish.py b/helixish.py index 1a8c074..ac6d473 100644 --- a/helixish.py +++ b/helixish.py @@ -200,7 +200,7 @@ class HelixishCurve(): #dbg('GOT ', l) if not l: vdbg().crashing('findcurve EOF') l = eval(l) - if l is None: break + if not l: break dbg(('%s Q=[%10.7f %10.7f %10.7f] dQ=[%10.7f %10.7f %10.7f]') %