=======================
This is a modest change but includes some backwards incompatible changes in
the routine --- hence the increase to v7.0.
- nonlinear_fit now supports priors with log-normal and sqrt-normal
distributions provided parameter extend=True is set when it is called.
A parameter 'c', for example, in a parameter dictionary can be assigned a
log-normal prior by specifying a prior for 'logc' (or 'log(c)') in the fit
prior, rather than for 'c'. This is the only change required to switch from
'c' from a Gaussian prior to a log-normal prior; in particular the fit
function can be still be expressed in terms of 'c' (rather than 'logc') since
parameter dictionaries created by nonlinear_fit will have entries for both
'c' and 'logc'. sqrt-normal distributions are handled the same way, but
with, for example, 'sqrtc' or 'sqrt(c)' instead of 'logc'. This
functionality was available in earlier releases using the function decorator
transform_p, which is no longer needed and has been removed.This means that
fit.transformed_p is gone too --- just use fit.p.
- lsqfit.wavg no longer stores chi2, dof, etc as attributes of the
function. These are all attributes of the result returned by
wavg.
- debug=True checks for more errors. In particular it now looks for
stray GVars (not from the parameters) in fit functions. The only
way a GVar should get into a fit function is through the parameters.
Having other GVars there used to lead to a very obscure error message.
Running with debug=True gives a slightly more comprehensible message.
- fixed bug in nonlinear_fit.format which sometimes put stars in the wrong
place.
- modified nonlinear_fit.format to list extra entries generated when
using log-normal or sqrt-variables. So for a log-normal variable 'logc',
results for both 'logc' and 'c' will appear in the formatted output.