[AstroPy] astropy.modeling.fitting.LevMarLSQFitter

Jonathan Loveday j.loveday at sussex.ac.uk
Thu Nov 1 11:24:48 EDT 2018


Hi astropy.modelling developers

A couple of points regarding this class:

1. The documentation http://docs.astropy.org/en/stable/api/astropy.modeling.fitting.LevMarLSQFitter.html#astropy.modeling.fitting.LevMarLSQFitter states:

weights : array (optional)
Weights for fitting. For data with Gaussian uncertainties, the weights should be 1/sigma.

This should of course read "the weights should be 1/sigma^2” (unless the code is squaring the weights, which would be very confusing).

2. Is there an easy away to obtain the fitted chi^2, other than calculating it oneself from the returned fitting function?  Presumably it must be calculated internally.

Thanks, Jon


Jon Loveday
Astronomy Centre, University of Sussex, Falmer, Brighton, BN1 9QH, UK
J.Loveday at sussex.ac.uk
+44 (0) 1273 877719





More information about the AstroPy mailing list