Stack settings in GUI

This commit is contained in:
jaknapper 2025-04-25 14:08:07 +01:00
parent f50580cdd0
commit 6cf99d5096
2 changed files with 20 additions and 1 deletions

View file

@ -151,6 +151,7 @@ class AutofocusThing(Thing):
Actions here involve moving a stage in z, and using the camera to either
capture images (generally, z-stacking) and measuring the sharpness of the
field of view to assess focus (autofocus and testing the success of a z-stack)"""
@thing_action
def fast_autofocus(
self,
@ -209,7 +210,11 @@ class AutofocusThing(Thing):
@thing_action
def looping_autofocus(
self, stage: Stage, sharpness_monitor: SharpnessMonitorDep, dz=2000, start="centre"
self,
stage: Stage,
sharpness_monitor: SharpnessMonitorDep,
dz=2000,
start="centre",
):
"""Repeatedly autofocus the stage until it looks focused.

View file

@ -24,6 +24,20 @@
label="Autofocus range (steps)"
/>
</div>
<div class="uk-margin">
<propertyControl
thing-name="autofocus"
property-name="stack_dz"
label="Stack dz (steps)"
/>
</div>
<div class="uk-margin">
<propertyControl
thing-name="autofocus"
property-name="stack_images_to_capture"
label="Images in stack to capture"
/>
</div>
<div class="uk-margin">
<propertyControl
thing-name="smart_scan"