Skip to content

Commit

Permalink
[Mockup] - Fixed set value
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-oscarsson committed Mar 19, 2024
1 parent 4fe5517 commit 2830a73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mxcubecore/HardwareObjects/mockup/ExporterNStateMockup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(self, name):
def init(self):
"""Initialise the device"""
AbstractNState.init(self)
value = [e.value for e in self.VALUES][1]
value = self.VALUES.OUT
self.update_state(self.STATES.READY)
self.update_value(value)

Expand Down Expand Up @@ -114,7 +114,7 @@ def _set_value(self, value):
else:
value = value.value

self._nominal_value = value
self._nominal_value = self.value_to_enum(value)
self.update_state(self.STATES.READY)

def get_value(self):
Expand All @@ -123,4 +123,4 @@ def get_value(self):
(Enum): Enum member, corresponding to the value or UNKNOWN.
"""
# _val = self._mock_value
return self.value_to_enum(self._nominal_value)
return self._nominal_value

0 comments on commit 2830a73

Please sign in to comment.