class HistoScanWorkflow(RectGridWorkflow[
A workflow optimised for scanning Histopathology samples.
This workflow automatically plans its own path around a sample spiralling out from the centre position, scanning only where it detects sample.
| Method | acquisition |
Perform acquisition routine. This is run at each scan location. |
| Method | check |
Check if sample is background. |
| Method | check |
Before starting a scan, check that background and camera-stage-mapping are set. |
| Method | new |
Return a new scan planner object. |
| Method | pre |
Autofocus before starting the scan. |
| Method | set |
Set the background for this background detector. |
| Method | settings |
Return the UI for the workflow's settings in the scan tab. |
| Class Variable | display |
Undocumented |
| Class Variable | equal |
Make the distances in x and y equal in motor steps, rather than in overlap. |
| Class Variable | max |
The maximum distance in steps from the centre of the scan. |
| Class Variable | skip |
Whether to detect and skip empty fields of view. |
| Class Variable | ui |
Undocumented |
| Property | ready |
Whether this scanworkflow is ready to start. |
| Method | _build |
Construct the SettingModel for all_settings. |
| Class Variable | _background |
Undocumented |
Inherited from RectGridWorkflow:
| Method | all |
Return scan settings and the stitching settings. |
| 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. |
| 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 | save |
A tuple of the image resolution to capture. |
| 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 | _settings |
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. |
HistoScanSettingsModel, xyz_pos: tuple[ int, int, int]) -> tuple[ bool, int | None]:
(source)
¶
Perform acquisition routine. This is run at each scan location.
| Parameters | |
settings:HistoScanSettingsModel | The settings for this scan as a HistoScanSettingsModel |
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. |
Before starting a scan, check that background and camera-stage-mapping are set.
- Raise error if:
- background is to be skipped but is not set
- camera stage mapping is not set
Raise warning if not using background detect that scan will go on until max steps reached
HistoScanSettingsModel, position: Mapping[ str, int]) -> ScanPlanner:
(source)
¶
Return a new scan planner object.
| Parameters | |
settings:HistoScanSettingsModel | The settings for this scan as a HistoScanSettingsModel |
position:Mapping[ | The starting position as a mapping of axes names to int. |
| Returns | |
ScanPlanner | Undocumented |
Autofocus before starting the scan.
| Parameters | |
settings:HistoScanSettingsModel | The settings for this scan as a HistoScanSettingsModel |
Set the background for this background detector.
This sets the background for this workflow's background detector as opposed to the active background detector for the camera.
UIElementList:
(source)
¶
Return the UI for the workflow's settings in the scan tab.
Make the distances in x and y equal in motor steps, rather than in overlap.
Uses the shorter distance (usually dy) as both dx and dy
Whether to detect and skip empty fields of view.
This uses the settings from the BackgroundDetectThing.
Construct the SettingModel for all_settings.
Adjust dx and dy to be equal if equal_distances is set.