r""" Load reference standards data (both built-in and user-defined). Must be called before attempting to access the reference standards
(self)
| 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""" |