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

Method load_standards

pyxrf/core/quant_analysis.py:768–785  ·  view source on GitHub ↗

r""" Load reference standards data (both built-in and user-defined). Must be called before attempting to access the reference standards

(self)

Source from the content-addressed store, hash-verified

766 self.fluorescence_data_dict = None
767
768 def load_standards(self):
769 r"""
770 Load reference standards data (both built-in and user-defined). Must be called before
771 attempting to access the reference standards
772 """
773 self.clear_standards()
774
775 try:
776 self.standards_built_in = load_included_xrf_standard_yaml_file()
777 except Exception as ex:
778 self.standards_built_in = None
779 logger.error(f"Failed to load built-in set of quantitative standards: {ex}")
780
781 try:
782 self.standards_custom = load_xrf_standard_yaml_file(self.custom_standards_file_path)
783 except Exception as ex:
784 self.standards_custom = None
785 logger.error(f"Failed to load custom set of quantitative standards: {ex}")
786
787 def clear_standards(self):
788 r"""

Callers 6

gen_hdf5_qa_datasetFunction · 0.95

Calls 3

clear_standardsMethod · 0.95

Tested by 4