PetroFit currently uses a Levenberg-Marquardt (LM) algorithm to minimize image data - model. There are situations where other algorithms are better suited than LM, such as TRF, which are available in astropy.
[ ] The fitter should be made optional for the user.
[ ] At this moment, TRF seems like a better default because it does well for models with bounds. Though it should be tested to see how well it does with complex compound models.
[ ] LM will not report 1-sigma errors for parameters if the model has bounds, which is another reason to use TRF as the default.
PetroFit currently uses a Levenberg-Marquardt (LM) algorithm to minimize image data - model. There are situations where other algorithms are better suited than LM, such as TRF, which are available in astropy.