bec_lib.scan_items.ScanStorage#

class ScanStorage(scan_manager: ScanManager, maxlen=50, init_scan_number=0)[source]#

Bases: object

stores scan items

Methods

add_scan_baseline

update a scan item with a new scan baseline

add_scan_item

append new scan item to scan storage

add_scan_segment

update a scan item with a new scan segment

find_scan_by_ID

find a scan item based on its scan_id

update_with_queue_status

create new scan items based on their existence in the queue info

update_with_scan_status

update scan item in storage with a new ScanStatusMessage

Attributes

current_scan

get the current scan item

current_scan_id

get the current scan_id

current_scan_info

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: ScanItem | None#

get the current scan item

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

find_scan_by_ID(scan_id: str) ScanItem | None[source]#

find a scan item based on its scan_id

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