MCPcopy Create free account
hub / github.com/NSLS2/PyXRF / _is_scan_successful

Function _is_scan_successful

pyxrf/model/load_data_from_db.py:534–538  ·  view source on GitHub ↗

Checks if the scan is successful

(hdr)

Source from the content-addressed store, hash-verified

532
533
534def _is_scan_successful(hdr):
535 """
536 Checks if the scan is successful
537 """
538 return bool(hdr.stop) and hdr.stop["exit_status"] == "success"
539
540
541def _extract_metadata_from_header(hdr):

Callers 7

map_data2D_hxnFunction · 0.85
map_data2D_srx_oldFunction · 0.85
map_data2D_srx_newFunction · 0.85
map_data2D_srx_new_tiledFunction · 0.85
map_data2D_tes_tiledFunction · 0.85
map_data2D_xfmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected