def __getattr__(self, attr):
     if attr.startswith("__"):
         raise AttributeError(attr)
     else:
         if attr == "currentCentringProcedure":
             return self.current_centring_procedure
         if attr == "centringStatus" :
             return self.centring_status
         if attr == "imageClicked":
             return self.image_clicked
         if attr == "cancelCentringMethod":
             return self.cancel_centring_method
         if attr == "pixelsPerMmY":
             return self.pixels_per_mm_x
         if attr == "pixelsPerMmZ":
             return self.pixels_per_mm_y
         return HardwareObject.__getattr__(self,attr)
Example #2
0
 def __getattr__(self, attr):
     if attr.startswith("__"):
         raise AttributeError(attr)
     else:
         if attr == "currentCentringProcedure":
             return self.current_centring_procedure
         if attr == "centringStatus":
             return self.centring_status
         if attr == "imageClicked":
             return self.image_clicked
         if attr == "cancelCentringMethod":
             return self.cancel_centring_method
         if attr == "pixelsPerMmY":
             return self.pixels_per_mm_x
         if attr == "pixelsPerMmZ":
             return self.pixels_per_mm_y
         return HardwareObject.__getattr__(self, attr)