Manually add an emission line (or peak). The name emission line (peak) to be deleted must be writtent to `self.e_name` before calling the function.
(self)
| 566 | self.data_for_plot() |
| 567 | |
| 568 | def remove_peak_manual(self): |
| 569 | """ |
| 570 | Manually add an emission line (or peak). The name emission line (peak) to be deleted |
| 571 | must be writtent to `self.e_name` before calling the function. |
| 572 | """ |
| 573 | if self.e_name not in self.EC.element_dict: |
| 574 | msg = ( |
| 575 | f"Line '{self.e_name}' is not in the list of selected lines,\n" |
| 576 | f"therefore it can not be deleted from the list." |
| 577 | ) |
| 578 | raise RuntimeError(msg) |
| 579 | |
| 580 | # Update parameter list |
| 581 | self._remove_parameters_for_eline(self.e_name) |
| 582 | |
| 583 | # Update EC |
| 584 | self.EC.delete_item(self.e_name) |
| 585 | self.EC.update_peak_ratio() |
| 586 | self.update_name_list() |
| 587 | self.data_for_plot() |
| 588 | |
| 589 | def remove_elements_below_threshold(self, threshv=None): |
| 590 | if threshv is None: |
nothing calls this directly
no test coverage detected