From e7f7b7d3088c27b570c48c56663766274528a640 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 29 Nov 2017 23:17:15 +0000 Subject: [PATCH] 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 --- findcurve.c | 2 +- helixish.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]') % -- 2.30.2