Start to move rest of python onto refactored camera API

This commit is contained in:
Julian Stirling 2026-05-27 23:27:24 +01:00
parent e3361ebec8
commit c18d43a3a5
4 changed files with 13 additions and 20 deletions

View file

@ -164,9 +164,9 @@ class ScanWorkflow(Generic[SettingModelType], lt.Thing):
self._autofocus.fast_autofocus(dz=dz)
focus_height = self._stage.get_xyz_position()[2]
filename = f"img_{xyz_pos[0]}_{xyz_pos[1]}_{focus_height}.jpeg"
self._cam.capture_and_save(
jpeg_path=os.path.join(images_dir, filename),
save_resolution=save_resolution,
self._cam.capture_and_save_to_path(
path=os.path.join(images_dir, filename),
capture_mode="standard",
)
return True, focus_height