Update parameters if new param_path is given. Parameters ---------- param_path : str path to save the file
(self, param_path)
| 1027 | return self._sort_eline_list(self.element_list) |
| 1028 | |
| 1029 | def read_param_from_file(self, param_path): |
| 1030 | """ |
| 1031 | Update parameters if new param_path is given. |
| 1032 | |
| 1033 | Parameters |
| 1034 | ---------- |
| 1035 | param_path : str |
| 1036 | path to save the file |
| 1037 | """ |
| 1038 | with open(param_path, "r") as json_data: |
| 1039 | param = json.load(json_data) |
| 1040 | self.update_new_param(param, reset=True) |
| 1041 | |
| 1042 | def find_peak(self, *, threshv=0.1, elemental_lines=None): |
| 1043 | """ |
no test coverage detected