From edb0f08e74a424932e36cef06f1b04d46e96fab7 Mon Sep 17 00:00:00 2001 From: sfop Date: Thu, 18 Aug 2016 16:34:33 +0200 Subject: [PATCH] Closedown --- script/ImageStats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/ImageStats.py b/script/ImageStats.py index 39c0581..e8529b8 100644 --- a/script/ImageStats.py +++ b/script/ImageStats.py @@ -32,7 +32,7 @@ def get_centroid(source): class ImageStats(DeviceBase): def __init__(self, name, source): - DeviceBase.__init__(self, source.getName() + " stats") + DeviceBase.__init__(self, name) self.com_x_samples, self.com_y_samples = [], [] class ComX(Readable): def read(self): @@ -84,7 +84,7 @@ if __name__ == "__builtin__": add_device(ImageStats("image_stats", image), True) image_stats.enableBackground(False) for i in range (100): - image_stats.update() + imagestats.update() print camera_tool.take(), camera_tool.com_x.read(), camera_tool.com_y.read()