From 784f9384a0f256a9f58520b92b6b21af962a911d Mon Sep 17 00:00:00 2001 From: sfop Date: Wed, 6 Jul 2016 10:01:34 +0200 Subject: [PATCH] Script execution --- script/camtool.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script/camtool.py b/script/camtool.py index f84d981..cc74a8b 100644 --- a/script/camtool.py +++ b/script/camtool.py @@ -7,8 +7,8 @@ class CamToolImage(ReadableMatrix): def __init__(self, camtool): self.camtool = camtool shape = camtool.cam_shape.read() - self.width = shape[1] #len(camtool.profile_x.read()) - self.height = shape[0] #len(camtool.(profile_y.read()) + self._width = shape[1] #len(camtool.profile_x.read()) + self._height = shape[0] #len(camtool.(profile_y.read()) def read(self): raw = self.camtool.cam_data.read() @@ -16,10 +16,10 @@ class CamToolImage(ReadableMatrix): #return mono_to_bidi(raw, self.getWidth(), self.getHeight()) def getWidth(self): - return self.width + return self._width def getHeight(self): - return self.height + return self._height