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

Method select_eline

pyxrf/core/quant_analysis.py:1386–1409  ·  view source on GitHub ↗

r""" Select emission line in the standard pointed by `file_path` as selected. The function will also deselect any the emission line in all other loaded standards. Use `get_file_path_list()` to get the list of file paths arranged in the order in which standards were lo

(self, eline, file_path)

Source from the content-addressed store, hash-verified

1384 return s
1385
1386 def select_eline(self, eline, file_path):
1387 r"""
1388 Select emission line in the standard pointed by `file_path` as selected.
1389 The function will also deselect any the emission line in all other loaded standards.
1390 Use `get_file_path_list()` to get the list of file paths arranged in the order
1391 in which standards were loaded.
1392
1393 It is assumed that `eline` exists in the standard `file_path`.
1394
1395 Parameters
1396 ----------
1397 file_path: str
1398 The string used to identify QA calibration data entry. See the docstring for
1399 ``add_entry`` for more detailed comments.
1400 eline: str
1401 Emission line name. Must match the emission line names used in calibration data.
1402 Typical format: ``Fe_K``, ``S_K`` etc.
1403 """
1404 n_item = self.find_entry_index(file_path)
1405 for n, settings in enumerate(self.calibration_settings):
1406 sel_flag = n == n_item # Set 'selected' to True only if n == n_item
1407 if eline in settings["element_lines"]:
1408 self.calibration_settings[n]["element_lines"][eline]["selected"] = sel_flag
1409 self.update_emission_line_list()
1410
1411 def is_eline_selected(self, eline, file_path):
1412 r"""

Callers 1

Calls 2

find_entry_indexMethod · 0.95

Tested by 1