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

Method gen_fluorescence_data_dict

pyxrf/core/quant_analysis.py:919–941  ·  view source on GitHub ↗

r""" Generate fluorescence data dictionary based on the description of the selected reference standard (reference standard must be selected using ``set_selected_standard``). Parameters ---------- incident_energy: float Incident beam energy, keV

(self, incident_energy)

Source from the content-addressed store, hash-verified

917 return bool(self._find_standard_custom(standard))
918
919 def gen_fluorescence_data_dict(self, incident_energy):
920 r"""
921 Generate fluorescence data dictionary based on the description of the selected
922 reference standard (reference standard must be selected using ``set_selected_standard``).
923
924 Parameters
925 ----------
926
927 incident_energy: float
928
929 Incident beam energy, keV
930 """
931
932 if incident_energy:
933 self.incident_energy = incident_energy
934 self.incident_energy = float(max(self.incident_energy, 0.0))
935 # 'incident_energy' must be 'float', not numpy 'float64' in order to be correctly displayed
936 # in 'yaml' formatted preview ('yaml' package does not support 'float64')
937
938 if incident_energy == 0.0:
939 logger.warning("Attempting to compute the list of emission lines with incident energy set to 0")
940
941 self.fluorescence_data_dict = get_quant_fluor_data_dict(self.standard_selected, incident_energy)
942
943 def fill_fluorescence_data_dict(self, *, xrf_map_dict, scaler_name):
944 r"""

Calls 1

Tested by 2