diff --git a/script/Alignment/Laser_gun_alignment.py b/script/Alignment/Laser_gun_alignment.py index 34805c5..a96c123 100755 --- a/script/Alignment/Laser_gun_alignment.py +++ b/script/Alignment/Laser_gun_alignment.py @@ -46,8 +46,8 @@ else: latch = True if get_device("image_stats") is None: print "Instantiating camtool" - add_device(CamTool("image_stats", prefix = "SINEG01-DSCR190:", latch = latch, camera = "SINEG01-DSCR190"), True) - if (latch): + add_device(CamTool("image_stats", prefix = "SINEG01-DSCR190:", latch = True, camera = "SINEG01-DSCR190"), True) + if (image_stats.latch): image_stats.start() #add_device(ImageStats("image_stats", get_simulated_source(image)), True) diff --git a/script/local.py b/script/local.py index c8bd4ca..8808977 100755 --- a/script/local.py +++ b/script/local.py @@ -180,7 +180,7 @@ center_y.setPolling(100) run("camtool") -add_device(CamTool("image_stats", prefix = "SINEG01-DSCR190:", latch = latch, camera = "SINEG01-DSCR190"), True) +add_device(CamTool("image_stats", prefix = "SINEG01-DSCR190:", latch = True, camera = "SINEG01-DSCR190"), True) #Convex hull plots