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

Method select_eline

pyxrf/gui_support/gpc_class.py:1375–1384  ·  view source on GitHub ↗
(self, eline)

Source from the content-addressed store, hash-verified

1373 self.plot_model.report_marker_state = callback
1374
1375 def select_eline(self, eline):
1376 self.param_model.e_name = eline
1377 n_id = 0 # No element is selected
1378 if eline != "":
1379 eline_list = self.get_full_eline_list()
1380 try:
1381 n_id = eline_list.index(eline) + 1 # Elements are numbered starting with 1.
1382 except ValueError:
1383 pass
1384 self.plot_model.element_id = n_id
1385
1386 def set_selected_eline(self, eline):
1387 """Sets and display the location of current emission line"""

Callers 6

set_selected_elineMethod · 0.95
add_peak_manualMethod · 0.95
remove_peak_manualMethod · 0.95
update_userpeakMethod · 0.95

Calls 1

get_full_eline_listMethod · 0.95

Tested by

no test coverage detected