Skip to content
Snippets Groups Projects
Commit c0ac0257 authored by Valentin Valls's avatar Valentin Valls
Browse files

Fixed duplicated function name

- Just for convenience with type checker tools
parent 78caa124
No related branches found
No related tags found
No related merge requests found
...@@ -263,7 +263,7 @@ class DiscretePositionsMotor(Device): ...@@ -263,7 +263,7 @@ class DiscretePositionsMotor(Device):
return self.motor_position.magnitude return self.motor_position.magnitude
@position.write @position.write
def position(self, value): def set_position(self, value):
print("moving motor to %s " % value) print("moving motor to %s " % value)
if self.motor_unit is None or self.motor_lims is None: if self.motor_unit is None or self.motor_lims is None:
raise RuntimeError( raise RuntimeError(
...@@ -288,7 +288,7 @@ class DiscretePositionsMotor(Device): ...@@ -288,7 +288,7 @@ class DiscretePositionsMotor(Device):
return self.motor_position_id return self.motor_position_id
@positionId.write @positionId.write
def positionId(self, position_name): def set_positionId(self, position_name):
if self.unreachable is None: if self.unreachable is None:
raise RuntimeError( raise RuntimeError(
'(%s) Moving to PositionID="%s" is not possible. Motor being initialized' '(%s) Moving to PositionID="%s" is not possible. Motor being initialized'
...@@ -330,7 +330,7 @@ class DiscretePositionsMotor(Device): ...@@ -330,7 +330,7 @@ class DiscretePositionsMotor(Device):
return json.dumps(allpos) return json.dumps(allpos)
@jsonConfiguration.write @jsonConfiguration.write
def jsonConfiguration(self, configuration): def set_jsonConfiguration(self, configuration):
return "not implemented yet" return "not implemented yet"
@attribute(dtype=(str,), max_dim_x=32) @attribute(dtype=(str,), max_dim_x=32)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment