class RegularGridWorkflow(RectGridWorkflow[
Known subclasses: openflexure_microscope_server.things.scan_workflows.RasterWorkflow, openflexure_microscope_server.things.scan_workflows.SnakeWorkflow
A base workflow for any workflow that uses a regular rectangular grid.
| Method | acquisition |
Autofocus and capture. |
| Method | new |
Return a new scan planner object. |
| Method | pre |
Perform these steps before starting the scan. |
| Method | settings |
Return the UI for the workflow's settings in the scan tab. |
| Class Variable | x |
The number of columns in the scan. |
| Class Variable | y |
The number of rows in the scan. |
| Method | _build |
Construct the SettingModel for all_settings. |
| Class Variable | _grid |
Undocumented |
| Class Variable | _settings |
Undocumented |
Inherited from RectGridWorkflow:
| Method | all |
Return scan settings and the stitching settings. |
| Method | check |
Before starting a scan, check that camera-stage-mapping is set. |
| Class Variable | autofocus |
The z distance to perform an autofocus in steps. |
| Class Variable | overlap |
The fraction that adjacent images should overlap in x and y. |
| Property | ready |
Whether this scanworkflow is ready to start. |
| Method | _calc |
Use camera stage mapping to calculate x and y displacement from given overlap. |
| Method | _get |
Return a stitching settings model based on current settings. |
| Class Variable | _csm |
Undocumented |
Inherited from ScanWorkflow (via RectGridWorkflow):
| Class Variable | display |
Undocumented |
| Class Variable | save |
A tuple of the image resolution to capture. |
| Class Variable | ui |
Undocumented |
| Method | _autofocus |
Autofocus and then capture, this can be used as an acquisition routine. |
| Class Variable | _autofocus |
Undocumented |
| Class Variable | _cam |
Undocumented |
| Class Variable | _planner |
Undocumented |
| Class Variable | _stage |
Undocumented |
Inherited from SmartStackMixin (via RectGridWorkflow, ScanWorkflow):
| Method | create |
Set up the parameters used for all smart stacks in a scan. |
| Method | smart |
Return smart stack property controls for the UI. |
| Class Variable | stack |
Distance in steps between images in a z-stack. |
| Instance Variable | stack |
The number of images to save in a stack. |
| Instance Variable | stack |
The minimum number of images to capture in a stack. |
| Property | as |
Return self as a ScanWorkflow. |
| Method | _perform |
Perform acquisition a smart stack. |
RegGridSettingModelType, xyz_pos: tuple[ int, int, int]) -> tuple[ bool, int | None]:
(source)
¶
Autofocus and capture.
| Parameters | |
settings:RegGridSettingModelType | The settings for this scan as the relevant SettingsModel type. |
xyztuple[ | The current position as a tuple or 3 ints. |
| Returns | |
tuple[ | A tuple of whether an image was taken, and the z-position for focus. If failed to find focus, returns for the focus z-position. |
RegGridSettingModelType, position: Mapping[ str, int]) -> ScanPlanner:
(source)
¶
Return a new scan planner object.
| Parameters | |
settings:RegGridSettingModelType | The settings for this scan as the relevant SettingsModel type. |
position:Mapping[ | The starting position as a mapping of axes names to int. |
| Returns | |
ScanPlanner | Undocumented |
Perform these steps before starting the scan.
In this case, only autofocus.
| Parameters | |
settings:RegGridSettingModelType | The settings for this scan as as the relevant SettingsModel type. |
UIElementList:
(source)
¶
Return the UI for the workflow's settings in the scan tab.