r""" Fills the generated fluorescence data dictionary based on XRF map dictionary and scaler name. The function resets fluorescence for all emission lines in the dictionary to None and then iterates through the list of the emission lines. If the map for the emission line is f
(self, *, xrf_map_dict, scaler_name)
| 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""" |
| 945 | Fills the generated fluorescence data dictionary based on XRF map dictionary and scaler name. |
| 946 | The function resets fluorescence for all emission lines in the dictionary to None and then |
| 947 | iterates through the list of the emission lines. If the map for the emission line is found |
| 948 | in the ``xrf_map_dict``, then the fluorescence value is computed and filled. Fluorescence |
| 949 | is computed as mean value of the respective map (over all pixels). If the scaler with name |
| 950 | ``scaler_name`` is found in ``xrf_map_dict`` then XRF map is normalized by the scaler before |
| 951 | computing fluorescence, otherwise no normalization is performed. |
| 952 | |
| 953 | Before this function is called, the standards must be loaded (``load_standards``), |
| 954 | a standard selected (``set_selected_standard``) and fluorescence data dictionary generated |
| 955 | (``gen_fluorescence_data_dict``). |
| 956 | |
| 957 | Parameters |
| 958 | ---------- |
| 959 | |
| 960 | xrf_map_dict: dict(array) |
| 961 | The dictionary of 2D ndarrays, which contain XRF maps for element lines and scalers. |
| 962 | Dictionary keys are the names of the emission lines (e.g. Fe_K, S_K, Au_M etc.) |
| 963 | |
| 964 | scaler_name: str |
| 965 | Scaler name. In order for the scaler to be applied, the name must match one of the |
| 966 | keys of `xrf_map_dict'. If the scaler name is not one of the list keys or set to None, |
| 967 | then fluorescence is not normalized |
| 968 | """ |
| 969 | |
| 970 | fill_quant_fluor_data_dict(self.fluorescence_data_dict, xrf_map_dict=xrf_map_dict, scaler_name=scaler_name) |
| 971 | |
| 972 | def set_detector_channel_in_data_dict(self, *, detector_channel=None): |
| 973 | r""" |