Closed fdrgsp closed 1 year ago
Patch coverage: 98.26
% and project coverage change: +0.33
:tada:
Comparison is base (
7486cf9
) 96.11% compared to head (e9b0e68
) 96.44%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
as discussed, perhaps a top level AutoFocusPlan
on the sequence itself is a good idea here:
class AutoFocusPlan(UseqModel):
device_name: str
af_motor_position: float = 0
axes: Tuple[str, ...] = Field(default_factory=tuple)
This PR adds an hardware autofocus device plan to
useq-schema
and implements its use in theMDASequence
iter_sequence
method (andMDAEvent
).The basic logic is that a user can specify the
axes
that should be used for the hardware autofocus (e.g.p
,t
, etc.) and the yieldedMDAEvent
will have info on weather to perform autofocus or not on the specified axis.merge after #93 .
Example of use in https://github.com/pymmcore-plus/pymmcore-plus/pull/199 and https://github.com/pymmcore-plus/pymmcore-widgets/pull/147.