bec_lib.scan_items.ScanStorage#
- class ScanStorage(scan_manager: ScanManager, maxlen=50, init_scan_number=0)[source]#
Bases:
object
stores scan items
Methods
update a scan item with a new scan baseline
append new scan item to scan storage
update a scan item with a new scan segment
find a scan item based on its scan_id
create new scan items based on their existence in the queue info
update scan item in storage with a new ScanStatusMessage
Attributes
get the current scan item
get the current scan_id
get the current scan info from the scan queue
- add_scan_baseline(scan_msg: ScanBaselineMessage) None [source]#
update a scan item with a new scan baseline
- add_scan_item(queue_id: str, scan_number: list, scan_id: list, status: str)[source]#
append new scan item to scan storage
- add_scan_segment(scan_msg: ScanMessage) None [source]#
update a scan item with a new scan segment
- property current_scan_id: str | None#
get the current scan_id
- property current_scan_info: dict#
get the current scan info from the scan queue
- update_with_queue_status(queue_msg: ScanQueueStatusMessage)[source]#
create new scan items based on their existence in the queue info
- update_with_scan_status(scan_status: ScanStatusMessage) None [source]#
update scan item in storage with a new ScanStatusMessage