Use scan autofocus dz
This commit is contained in:
parent
cdd603d751
commit
dbb65d55b5
2 changed files with 3 additions and 1 deletions
|
|
@ -297,6 +297,7 @@ class AutofocusThing(Thing):
|
||||||
capture: CaptureDep,
|
capture: CaptureDep,
|
||||||
sharpness_monitor: SharpnessMonitorDep,
|
sharpness_monitor: SharpnessMonitorDep,
|
||||||
images_dir: str,
|
images_dir: str,
|
||||||
|
autofocus_dz: int,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Run a z stack, saving all images to stack_dir and copying the
|
"""Run a z stack, saving all images to stack_dir and copying the
|
||||||
central image to stack_dir"""
|
central image to stack_dir"""
|
||||||
|
|
@ -360,7 +361,7 @@ class AutofocusThing(Thing):
|
||||||
self.looping_autofocus(
|
self.looping_autofocus(
|
||||||
stage=stage,
|
stage=stage,
|
||||||
sharpness_monitor=sharpness_monitor,
|
sharpness_monitor=sharpness_monitor,
|
||||||
dz=2000,
|
dz=autofocus_dz,
|
||||||
)
|
)
|
||||||
stage.move_relative(
|
stage.move_relative(
|
||||||
z=-(overshoot + BACKLASH_CORRECTION + stack_z_range / 2)
|
z=-(overshoot + BACKLASH_CORRECTION + stack_z_range / 2)
|
||||||
|
|
|
||||||
|
|
@ -646,6 +646,7 @@ class SmartScanThing(Thing):
|
||||||
|
|
||||||
focused_height = self._autofocus.run_z_stack(
|
focused_height = self._autofocus.run_z_stack(
|
||||||
images_dir=self._ongoing_scan_images_dir,
|
images_dir=self._ongoing_scan_images_dir,
|
||||||
|
autofocus_dz = self._scan_data['autofocus_dz']
|
||||||
)
|
)
|
||||||
|
|
||||||
current_pos_xyz = (
|
current_pos_xyz = (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue