Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
(#820) Add test confirming the zoom level is set correctly on setup OAV
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicOram committed Jul 20, 2023
1 parent f4c08e2 commit 0838dc4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/artemis/device_setup_plans/setup_oav.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ def pre_centring_setup_oav(oav: OAV, parameters: OAVParameters):
parameters.detection_script_filename,
)

# Connect MXSC output to MJPG input for debugging
yield from bps.abs_set(oav.snapshot.input_plugin, "OAV.MXSC")

zoom_level_str = f"{float(parameters.zoom)}x"
if zoom_level_str not in oav.zoom_controller.allowed_zoom_levels:
raise OAVError_ZoomLevelNotFound(
Expand All @@ -96,6 +93,10 @@ def pre_centring_setup_oav(oav: OAV, parameters: OAVParameters):
zoom_level_str,
wait=True,
)

# Connect MXSC output to MJPG input for debugging
yield from bps.abs_set(oav.snapshot.input_plugin, "OAV.MXSC")

yield from bps.wait()

"""
Expand Down

0 comments on commit 0838dc4

Please sign in to comment.