Skip to content
Snippets Groups Projects
Commit 87f5f8fb authored by Milan Prica's avatar Milan Prica :skier:
Browse files

Some attribute R/W permits modiified

parent 9b784033
No related branches found
No related tags found
No related merge requests found
...@@ -580,7 +580,7 @@ class Smaract_mcs2 (PyTango.Device_4Impl): ...@@ -580,7 +580,7 @@ class Smaract_mcs2 (PyTango.Device_4Impl):
self.socket_write(cmd_str) self.socket_write(cmd_str)
def is_Acceleration_allowed(self, req_type): def is_Acceleration_allowed(self, req_type):
return req_type is PyTango.AttReqType.READ_REQ or (self.get_state() not in (PyTango.DevState.MOVING, ) and self.sensor_present) return req_type is PyTango.AttReqType.READ_REQ or (self.get_state() not in (PyTango.DevState.MOVING, PyTango.DevState.FAULT,) and self.sensor_present)
def read_Velocity(self, attr): def read_Velocity(self, attr):
# self.debug_stream("In read_Velocity()") # self.debug_stream("In read_Velocity()")
...@@ -606,7 +606,7 @@ class Smaract_mcs2 (PyTango.Device_4Impl): ...@@ -606,7 +606,7 @@ class Smaract_mcs2 (PyTango.Device_4Impl):
self.socket_write(cmd_str) self.socket_write(cmd_str)
def is_Velocity_allowed(self, req_type): def is_Velocity_allowed(self, req_type):
return req_type is PyTango.AttReqType.READ_REQ or (self.get_state() not in (PyTango.DevState.MOVING, ) and self.sensor_present) return req_type is PyTango.AttReqType.READ_REQ or (self.get_state() not in (PyTango.DevState.MOVING, PyTango.DevState.FAULT,) and self.sensor_present)
def read_HoldTime(self, attr): def read_HoldTime(self, attr):
# self.debug_stream("In read_HoldTime()") # self.debug_stream("In read_HoldTime()")
...@@ -684,7 +684,7 @@ class Smaract_mcs2 (PyTango.Device_4Impl): ...@@ -684,7 +684,7 @@ class Smaract_mcs2 (PyTango.Device_4Impl):
self.socket_write(cmd_str) self.socket_write(cmd_str)
def is_LSOffset_allowed(self, req_type): def is_LSOffset_allowed(self, req_type):
return req_type is PyTango.AttReqType.READ_REQ or (self.get_state() not in (PyTango.DevState.MOVING, ) and self.sensor_present) return req_type is PyTango.AttReqType.READ_REQ or (self.get_state() not in (PyTango.DevState.MOVING, PyTango.DevState.FAULT,) and self.sensor_present)
def read_HighLimitPosition(self, attr): def read_HighLimitPosition(self, attr):
# self.debug_stream("In read_HighLimitPosition()") # self.debug_stream("In read_HighLimitPosition()")
...@@ -708,7 +708,7 @@ class Smaract_mcs2 (PyTango.Device_4Impl): ...@@ -708,7 +708,7 @@ class Smaract_mcs2 (PyTango.Device_4Impl):
self.socket_write(cmd_str) self.socket_write(cmd_str)
def is_HighLimitPosition_allowed(self, req_type): def is_HighLimitPosition_allowed(self, req_type):
return req_type is PyTango.AttReqType.READ_REQ or (self.get_state() not in (PyTango.DevState.MOVING, ) and self.sensor_present) return req_type is PyTango.AttReqType.READ_REQ or (self.get_state() not in (PyTango.DevState.MOVING, PyTango.DevState.FAULT,) and self.sensor_present)
def read_LowLimitPosition(self, attr): def read_LowLimitPosition(self, attr):
# self.debug_stream("In read_LowLimitPosition()") # self.debug_stream("In read_LowLimitPosition()")
...@@ -732,7 +732,7 @@ class Smaract_mcs2 (PyTango.Device_4Impl): ...@@ -732,7 +732,7 @@ class Smaract_mcs2 (PyTango.Device_4Impl):
self.socket_write(cmd_str) self.socket_write(cmd_str)
def is_LowLimitPosition_allowed(self, req_type): def is_LowLimitPosition_allowed(self, req_type):
return req_type is PyTango.AttReqType.READ_REQ or (self.get_state() not in (PyTango.DevState.MOVING, ) and self.sensor_present) return req_type is PyTango.AttReqType.READ_REQ or (self.get_state() not in (PyTango.DevState.MOVING, PyTango.DevState.FAULT,) and self.sensor_present)
def read_Amplitude(self, attr): def read_Amplitude(self, attr):
# self.debug_stream("In read_Amplitude()") # self.debug_stream("In read_Amplitude()")
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment