update_model

ell1fit.create_parfile.update_model(model, value_dict, include_info=True)[source]

Fold fit results into a copy of a timing model.

Parameters:
modelpint.models.TimingModel

The model to update. Not modified; a deep copy is returned.

value_dictdict or astropy.table.Row

A result row from the pipeline, holding d<par>_mean, d<par>_initial, d<par>_factor and the 16th/84th percentiles for each fitted parameter. Parameters absent from it are left alone, so a fit of two parameters updates exactly those two.

include_infobool, optional

Whether to let PINT write its provenance header. Forced off on Windows, where the call fails.

Returns:
pint.models.TimingModel

A new model carrying the fitted values, their uncertainties, and frozen = False on everything that was fitted.

Notes

Only BinaryELL1 and Spindown parameters are considered, plus Phase. The uncertainty written is the larger of the two one-sigma half-widths, since a parfile has room for only a symmetric error.