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

Function set_selection

pyxrf/core/tests/test_quant_analysis.py:890–895  ·  view source on GitHub ↗
(pqa, elist, selection)

Source from the content-addressed store, hash-verified

888 elist = list(set(elist0).intersection(set(elist1)))
889
890 def set_selection(pqa, elist, selection):
891 for ln, sel in zip(elist, selection):
892 el_info = pqa.get_eline_info_complete(ln)
893 assert len(el_info) >= 2, f"The emission line {ln} must exist in at least 2 entries"
894 el_info[0]["eline_settings"]["selected"] = sel
895 el_info[1]["eline_settings"]["selected"] = not sel
896
897 def check_selection(pqa, elist, selection):
898 # We check the selection status directly

Callers 1

Calls 1

Tested by

no test coverage detected