From be66e62b42ea388c4fd826b193e6e4ceebd038c0 Mon Sep 17 00:00:00 2001 From: sfop Date: Mon, 27 Jun 2016 16:42:45 +0200 Subject: [PATCH] Script execution --- script/Alignment/Gun_solenoid_alignment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/Alignment/Gun_solenoid_alignment.py b/script/Alignment/Gun_solenoid_alignment.py index d93b097..a959c6e 100755 --- a/script/Alignment/Gun_solenoid_alignment.py +++ b/script/Alignment/Gun_solenoid_alignment.py @@ -126,9 +126,9 @@ finally: # take the result of the scan and do the plots #p = plot(r.getReadable(1), xdata=r.getReadable(0), title = "Centroid excursion")[0] #hull=add_convex_hull_plot ("Centroid excursion", r.getReadable(0),r.getReadable(1), plot_name, False, (0,cam_img._width), (0,cam_img._height)) -if add_convex_hull_plot: +if centroid_excursion_plot: (hx,hy)=add_convex_hull_plot ("Centroid excursion", r.getReadable(0),r.getReadable(1), plot_name) -else: +else: (hx,hy)= convex_hull(x=r.getReadable(0), y=r.getReadable(1)) hx.append(hx[0]); hy.append(hy[0])