Skip to content

Commit fb9bce4

Browse files
committed
[cytation] use _acquire_image in autofocus
1 parent 996515a commit fb9bce4

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

pylabrobot/plate_reading/biotek_backend.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -912,17 +912,8 @@ async def auto_focus(self, timeout: float = 30):
912912

913913
# objective function: variance of laplacian
914914
async def evaluate_focus(focus_value):
915-
result = await self.capture( # TODO: _acquire_image
916-
plate=plate,
917-
row=row,
918-
column=column,
919-
mode=imaging_mode,
920-
objective=objective,
921-
focal_height=focus_value,
922-
exposure_time=exposure,
923-
gain=gain,
924-
)
925-
image = result.images[0]
915+
await self.set_focus(focus_value)
916+
image = await self._acquire_image()
926917

927918
if not CV2_AVAILABLE:
928919
raise RuntimeError(

0 commit comments

Comments
 (0)