(self)
| 1669 | self.plot_model.update_fit_plots() |
| 1670 | |
| 1671 | def total_spectrum_fitting(self): |
| 1672 | # Update parameter for fit. This may be unnecessary |
| 1673 | self.apply_to_fit(update_plots=False) |
| 1674 | |
| 1675 | self.fit_model.fit_multiple() |
| 1676 | |
| 1677 | # BUG: line color for pileup is not correct from fit |
| 1678 | self.fit_model.get_profile() |
| 1679 | |
| 1680 | # update experimental plot with new calibration values |
| 1681 | self.plot_model.plot_experiment() |
| 1682 | |
| 1683 | self.plot_model.plot_fit( |
| 1684 | self.fit_model.cal_x, self.fit_model.cal_y, self.fit_model.cal_spectrum, self.fit_model.residual |
| 1685 | ) |
| 1686 | |
| 1687 | # For plotting purposes, otherwise plot will not update |
| 1688 | self.plot_model.plot_exp_opt = False |
| 1689 | self.plot_model.plot_exp_opt = True |
| 1690 | self.plot_model.show_fit_opt = False |
| 1691 | self.plot_model.show_fit_opt = True |
| 1692 | |
| 1693 | # update autofit param |
| 1694 | self.param_model.update_new_param(self.param_model.param_new) |
| 1695 | # param_model.get_new_param_from_file(parameter_file_path) |
| 1696 | self.param_model.update_name_list() |
| 1697 | self.param_model.EC.turn_on_all() |
| 1698 | |
| 1699 | # Update displayed intensity of the selected peak |
| 1700 | self.plot_model.compute_manual_peak_intensity() |
| 1701 | |
| 1702 | self.fitting_parameters_changed() |
| 1703 | |
| 1704 | def save_param_to_file(self, path): |
| 1705 | save_as(path, self.param_model.param_new) |
no test coverage detected