class documentation
class ActiveScanData(scan_directories.BaseScanData): (source)
A model for the scan data during an ongoing scan.
This differs from HistoricScanData as in this model workflow_settings are the model specified for the current ScanWorkflow. HistoricScanData loads workflow_settings into a dictionary.
| Method | set |
Set the final data for the scan, scan duration is automatically calculated. |
| Class Variable | workflow |
The settings for the ongoing workflow. |
| Instance Variable | duration |
The duration of the scan. |
| Instance Variable | scan |
The result of the scan. |
Inherited from BaseScanData:
| Class Method | parse |
Validate a timedelta that may be a string in Hrs:Min:Sec format or "Unknown". |
| Class Method | parse |
Validate a timestamp that may be a string in Year-Month-Day_Hrs:Min:Sec format. |
| Class Method | parse |
Validate the string "Unknown" as None. |
| Method | serialize |
Serialise None as "Unknown" for a more human readable result. |
| Method | serialize |
Serialise timedelta to Hrs:Min:Sec (or "Unknown" if None). |
| Method | serialize |
Serialise timestamp to Year-Month-Day_Hrs:Min:Sec format. |
| Method | validate |
Validate the schema version is as the current one. |
| Class Variable | image |
The number of images taken. |
| Class Variable | model |
Undocumented |
| Class Variable | save |
The resolution that scan images are saved at. |
| Class Variable | scan |
The name of the scan i.e. scan_0001 |
| Class Variable | start |
The time the scan started. |
| Class Variable | starting |
The starting position in dictionary format. |
| Class Variable | stitch |
Whether the scan is set to automatically stitch when complete. |
| Class Variable | stitching |
The data needed to stitch a scan. |
| Class Variable | workflow |
The class name of the workflow Thing. |
Set the final data for the scan, scan duration is automatically calculated.
| Parameters | |
result:str | A string describing the result. |