From 67a873d6100dedbc015757f76208cb2eb3e5c34f Mon Sep 17 00:00:00 2001 From: "gac-bernina (Resp.Lemke Henrik Till)" Date: Sat, 2 Dec 2017 18:59:14 +0100 Subject: [PATCH] Back included Vince's KB descripotion --- xoptics/KB.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xoptics/KB.py b/xoptics/KB.py index 6ac61a5..f9856d8 100755 --- a/xoptics/KB.py +++ b/xoptics/KB.py @@ -16,6 +16,10 @@ class KB: self.mode = PV(Id[:11]+':MODE').enum_strs[PV(Id[:11]+':MODE').value] def __str__(self): + s = "**KB mirror**\n\n" + motors = "bend1 bend2 pitch roll yaw x y".split() + for motor in motors: + s+= " - %s = %.4f\n" %(motor, getattr(self,motor).wm()) return "KB is %s"%self.mode.lower() def __repr__(self):