From ecf00c92bcb7f4eaf8b570bb09e84c22b244bb47 Mon Sep 17 00:00:00 2001 From: "zefirova.am" Date: Wed, 13 Dec 2023 22:48:01 +0300 Subject: [PATCH] Change_turtle_device --- equipment/turtle_device.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/equipment/turtle_device.py b/equipment/turtle_device.py index fabbf4b..4b6cec9 100644 --- a/equipment/turtle_device.py +++ b/equipment/turtle_device.py @@ -35,11 +35,11 @@ class TurtleDevice(SynchronyDevice): @property def action_descriptors(self): - actions = [(attribute, getattr(t, attribute)) for attribute in dir(t) + actions = [(attribute, getattr(self.turtle, attribute)) for attribute in dir(self.turtle) if (attribute.startswith('_') == False)] self.actions = [TraitDescriptor(*ac) for ac in actions] - return self.acions + return self.actions def read(self, trait_name): collection = self.traits