class documentation
class HistoricScanData(BaseScanData): (source)
A Model for the scan data that has been loaded from disk.
Any workflow specific settings are loaded as an arbitrary dictionary. Other settings such as those which are needed for the UI or stitching are loaded and validated by the parent class BaseScanData.
| Class Method | coerce |
Coerce any scan data from before version 2 into the version 2 format. |
| Class Variable | workflow |
A dictionary of the settings for the workflow that was used workflow. |
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 | duration |
The duration of the scan. |
| 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 | scan |
The result of the scan. |
| 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. |