class ScanWorkflow(Generic[
Known subclasses: openflexure_microscope_server.things.scan_workflows.RectGridWorkflow
A base class for all Scanworkflows.
Scan workflows set the behaviour of a scan, including the background detection, scan planning, acquisition routine.
| Method | acquisition |
Overload to set the acquisition routine that happens at each scan site. |
| Method | all |
Return the scan settings and the stitching settings. |
| Method | check |
Check before the scan starts. Throw an error if the scan shouldn't start. |
| Method | new |
Return the a new scan planner object for a scan. |
| Method | pre |
Overload to set the routine that happens before each scan. |
| Class Variable | display |
Undocumented |
| Class Variable | save |
A tuple of the image resolution to capture. |
| Class Variable | ui |
Undocumented |
| Property | ready |
Whether this scanworkflow is ready to start. |
| Property | settings |
A list of PropertyControl objects to create the settings in the scan tab. |
| Method | _autofocus |
Autofocus and then capture, this can be used as an acquisition routine. |
| Class Variable | _autofocus |
Undocumented |
| Class Variable | _cam |
Undocumented |
| Class Variable | _csm |
Undocumented |
| Class Variable | _planner |
Undocumented |
| Class Variable | _settings |
Undocumented |
| Class Variable | _stage |
Undocumented |
SettingModelType, xyz_pos: tuple[ int, int, int]) -> tuple[ bool, int | None]:
(source)
¶
openflexure_microscope_server.things.scan_workflows.HistoScanWorkflow, openflexure_microscope_server.things.scan_workflows.RegularGridWorkflowOverload to set the acquisition routine that happens at each scan site.
| Parameters | |
settings:SettingModelType | The settings for this scan, which should be a SettingModelType |
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. |
str) -> tuple[ SettingModelType, StitchingSettings | None]:
(source)
¶
openflexure_microscope_server.things.scan_workflows.HistoScanWorkflow, openflexure_microscope_server.things.scan_workflows.RegularGridWorkflowReturn the scan settings and the stitching settings.
- The specific settings for this scan workflow are returned as a Base Model of
- the type set when defining the class.
- Stitiching settings are returned either as a StitchingSettings object or None
- is returned if it is not possible to stitch the scan.
Check before the scan starts. Throw an error if the scan shouldn't start.
The scan_name is passed to this function to enable workflows to validate the scan name if needed.
SettingModelType, position: Mapping[ str, int]) -> ScanPlanner:
(source)
¶
openflexure_microscope_server.things.scan_workflows.HistoScanWorkflow, openflexure_microscope_server.things.scan_workflows.RegularGridWorkflowReturn the a new scan planner object for a scan.
openflexure_microscope_server.things.scan_workflows.HistoScanWorkflow, openflexure_microscope_server.things.scan_workflows.RegularGridWorkflowOverload to set the routine that happens before each scan.
openflexure_microscope_server.things.scan_workflows.HistoScanWorkflow, openflexure_microscope_server.things.scan_workflows.RegularGridWorkflowA list of PropertyControl objects to create the settings in the scan tab.
tuple[ int, int, int], dz: int, images_dir: str, save_resolution: tuple[ int, int]) -> tuple[ bool, int | None]:
(source)
¶
Autofocus and then capture, this can be used as an acquisition routine.
| Parameters | |
xyztuple[ | Undocumented |
dz:int | The dz for autofocus. |
imagesstr | The path to the directory for saving images.. |
savetuple[ | The resolution to save images at. |
| Returns | |
tuple[ | A tuple ready to pass out of acquisition routine. In this method, image is always taken, so first return is True. |