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

Method _get_pileup_lines

pyxrf/model/lineplot.py:963–984  ·  view source on GitHub ↗

Returns the energy (center) of pileup peak. And the energies of two components. Parameters ---------- eline: str Name of the pileup peak, e.g. V_Ka1-Co_Ka1 Returns ------- list(float) Energy in keV of pileup peak and

(self, eline)

Source from the content-addressed store, hash-verified

961 return _elist
962
963 def _get_pileup_lines(self, eline):
964 """
965 Returns the energy (center) of pileup peak. And the energies of two components.
966
967 Parameters
968 ----------
969 eline: str
970 Name of the pileup peak, e.g. V_Ka1-Co_Ka1
971
972 Returns
973 -------
974 list(float)
975 Energy in keV of pileup peak and two components
976 """
977 try:
978 element_line1, element_line2 = eline.split("-")
979 e1_cen = get_eline_parameters(element_line1, self.incident_energy)["energy"]
980 e2_cen = get_eline_parameters(element_line2, self.incident_energy)["energy"]
981 en = [e1_cen + e2_cen, e1_cen, e2_cen]
982 except Exception:
983 en = []
984 return en
985
986 def _fill_elist_pileup(self, eline=None):
987 if eline is None:

Callers 1

_fill_elist_pileupMethod · 0.95

Calls 1

get_eline_parametersFunction · 0.85

Tested by

no test coverage detected