From cdd3c81a67facfcb5cb8e0f0c8aa670c58e024c6 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Mon, 11 Jul 2022 12:50:18 +0200 Subject: [PATCH] rewrote OffsetMirror as devices --- slic/devices/xoptics/offset_mirrors.py | 22 ---------------------- slic/devices/xoptics/offsetmirrors.py | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 22 deletions(-) delete mode 100644 slic/devices/xoptics/offset_mirrors.py create mode 100644 slic/devices/xoptics/offsetmirrors.py diff --git a/slic/devices/xoptics/offset_mirrors.py b/slic/devices/xoptics/offset_mirrors.py deleted file mode 100644 index 43bfb74a..00000000 --- a/slic/devices/xoptics/offset_mirrors.py +++ /dev/null @@ -1,22 +0,0 @@ -from slic.devices.general.motor import Motor - - -class OffsetMirror: - - def __init__(self, name=None, ID=None): - self.ID = ID - self.name = name - - self.x = Motor(ID + ":W_X") - self.y = Motor(ID + ":W_Y") - self.rx = Motor(ID + ":W_RX") - self.rz = Motor(ID + ":W_RZ") - - def out(self): - pass - - def move_in(self): - pass - - - diff --git a/slic/devices/xoptics/offsetmirrors.py b/slic/devices/xoptics/offsetmirrors.py new file mode 100644 index 00000000..f490e1ac --- /dev/null +++ b/slic/devices/xoptics/offsetmirrors.py @@ -0,0 +1,16 @@ +from slic.core.device import Device +from slic.devices.general.motor import Motor + + +class OffsetMirror(Device): + + def __init__(self, ID, **kwargs): + super().__init__(ID, **kwargs) + + self.x = Motor(ID + ":W_X") + self.y = Motor(ID + ":W_Y") + self.rx = Motor(ID + ":W_RX") + self.rz = Motor(ID + ":W_RZ") + + +