(pqa, elist, selection)
| 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 |
no test coverage detected