bec_lib.utils.scan_to_dict#
- scan_to_dict(scan_item: ScanItem, flat: bool = True) dict [source]#
Convert scan data to a dictionary.
- Parameters:
scan_item (ScanItem) – ScanItem object.
flat (bool, optional) – If True, the dictionary will be flat. Defaults to True.
- Returns:
Dictionary of scan data.
- Return type:
(dict)
Examples
>>> scan_to_dict(scan_report) with scan_report = scans.line_scan(...)