Closed rachel3834 closed 12 months ago
I have added new extra parameters to store the uncertainties for the Paczinski parameters, and modified mop.toolbox.fittools.gather_model_parameters to calcualate them from the covarience matrix of the best fitting model. The uncertainties are then stored in MOP for the best model and displayed on the TargetDetailPage for a given event.
In the course of this upgrade, I noticed I'd made some typos in the section of the mop.toolbox.fittools.fit_pspl_omega2 function that stores the parameters of the second model fit (without blending) with the first model (with blending). This meant that the comparison between the two models was never being made, leading to unstable results. I have now corrected this logic.
This upgrade has been deployed in PR #74
MOP's TargetDetailPage should cleanly display the uncertainties on the fitted parameters.