Skip to content

Commit

Permalink
Prevent using deprecated set_is_ready function
Browse files Browse the repository at this point in the history
  • Loading branch information
walesch-yan authored and marcus-oscarsson committed Nov 12, 2024
1 parent f40d077 commit a543ec1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mxcubecore/HardwareObjects/TangoLimaVideo.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def init(self):
else:
logging.getLogger("HWR").info("MXCuBE NOT controlling video")

self.set_is_ready(True)
self.update_state(BaseHardwareObjects.HardwareObjectState.READY)

def get_last_image(self):
return poll_image(self.device, self.video_mode, self._FORMATS)
Expand Down
2 changes: 1 addition & 1 deletion mxcubecore/HardwareObjects/mockup/MDCameraMockup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def _init(self):
self.connected = False
self.image_name = self.get_property("image_name")
self.image = HWR.get_hardware_repository().find_in_repository(self.image_name)
self.set_is_ready(True)
self.update_state(BaseHardwareObjects.HardwareObjectState.READY)
self._video_stream_process = None
self._current_stream_size = (0, 0)

Expand Down

0 comments on commit a543ec1

Please sign in to comment.