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

Method remove_peak_manual

pyxrf/gui_support/gpc_class.py:1572–1580  ·  view source on GitHub ↗

Manually add a peak (emission line) using 'Remove' button

(self, eline)

Source from the content-addressed store, hash-verified

1570 self.fitting_parameters_changed()
1571
1572 def remove_peak_manual(self, eline):
1573 """Manually add a peak (emission line) using 'Remove' button"""
1574 try:
1575 self.select_eline(eline)
1576 self.param_model.remove_peak_manual()
1577 self.apply_to_fit()
1578 self.fitting_parameters_changed()
1579 except Exception as ex:
1580 raise RuntimeError(str(ex))
1581
1582 def update_userpeak(self, eline, energy, maxv, fwhm):
1583 """

Callers 1

Calls 3

select_elineMethod · 0.95
apply_to_fitMethod · 0.95

Tested by

no test coverage detected