When result_dict_names change, the looper in enaml will update.
(self)
| 938 | return name1 + "-" + name2 |
| 939 | |
| 940 | def update_name_list(self): |
| 941 | """ |
| 942 | When result_dict_names change, the looper in enaml will update. |
| 943 | """ |
| 944 | # need to clean list first, in order to refresh the list in GUI |
| 945 | self.result_dict_names = [] |
| 946 | self.result_dict_names = list(self.EC.element_dict.keys()) |
| 947 | self.element_list = get_element_list(self.param_new) |
| 948 | |
| 949 | peak_list = self.get_user_peak_list() |
| 950 | # Create the list of selected emission lines such as Ca_K, K_K, etc. |
| 951 | # No pileup or user peaks |
| 952 | pure_peak_list = [n for n in self.result_dict_names if n in peak_list] |
| 953 | self.n_selected_elines_for_fitting = len(self.result_dict_names) |
| 954 | self.n_selected_pure_elines_for_fitting = len(pure_peak_list) |
| 955 | |
| 956 | logger.info(f"The update list of emission lines: {self.result_dict_names}") |
| 957 | |
| 958 | def get_eline_name_category(self, eline_name): |
| 959 | """ |
no test coverage detected