added as_string=True

This commit is contained in:
Chris Milne
2018-06-04 18:50:17 +02:00
parent 937f38e453
commit eff354bc78
+2 -2
View File
@@ -56,11 +56,11 @@ class table:
def __str__(self):
return "Table positions\nx: %s mm\ny: %s mm\nz: %s\npitch: %s mrad\nyaw: %s mrad\nmode SP: %s \nstatus: %s" \
% (self.x.wm(),self.y.wm(),self.z.wm(),self.pitch.wm(),self.yaw.wm(),self.modeSP.get(),self.status.get())
% (self.x.wm(),self.y.wm(),self.z.wm(),self.pitch.wm(),self.yaw.wm(),self.modeSP.get(),self.status.get(as_string=True))
def __repr__(self):
return "{'x': %s, 'y': %s,'z': %s,'pitch': %s, 'yaw': %s, 'mode set point': %s,'status': %s}" \
% (self.x,self.y,self.z,self.pitch,self.yaw,self.modeSP.get(),self.status.get())
% (self.x,self.y,self.z,self.pitch,self.yaw,self.modeSP.get(),self.status.get(as_string=True))
class microscope:
def __init__(self,Id,alias_namespace=None):