From ea40a55cdd142b9d64c3c53cab1b2ff2610c2fad Mon Sep 17 00:00:00 2001 From: Chris Milne Date: Mon, 4 Jun 2018 18:21:55 +0200 Subject: [PATCH] more table stuff --- endstations/alvra_prime.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/endstations/alvra_prime.py b/endstations/alvra_prime.py index b86e590..cd9a455 100755 --- a/endstations/alvra_prime.py +++ b/endstations/alvra_prime.py @@ -53,11 +53,11 @@ class table: self.pitch = MotorRecord(Id+':W_RX') def __str__(self): - return "Table positions\nx: %s mm\ny: %s mm\nz: %s\npitch: %s mm\nyaw: %s mm" \ + return "Table positions\nx: %s mm\ny: %s mm\nz: %s\npitch: %s mrad\nyaw: %s mrad" \ % (self.x.wm(),self.y.wm(),self.z.wm(),self.pitch.wm(),self.yaw.wm()) def __repr__(self): - return "{'x': %s, 'y': %s,'z': %s,'pitch': %s, 'yaw': %s}" \ + return "{'x': %.4f, 'y': %.4f,'z': %.4f,'pitch': %.2f, 'yaw': %.2f}" \ % (self.x,self.y,self.z,self.pitch,self.yaw) class microscope: