pint.utils.dmxparse

pint.utils.dmxparse(fitter, save=False)[source]

Run dmxparse in python using PINT objects and results.

Based off dmxparse by P. Demorest (https://github.com/nanograv/tempo/tree/master/util/dmxparse)

Parameters:
  • fitter – PINT fitter used to get timing residuals, must have already run a fit

  • save (bool or str or file-like object, optional) – If not False or None, saves output to specified file in the format of the TEMPO version. If True, assumes output file is dmxparse.out

Returns:

dmxs : mean-subtraced dmx values

dmx_verrs : dmx variance errors

dmxeps : center mjds of the dmx bins

r1s : lower mjd bounds on the dmx bins

r2s : upper mjd bounds on the dmx bins

bins : dmx bins

mean_dmx : mean dmx value

avg_dm_err : uncertainty in average dmx

Return type:

dict

Raises:

RuntimeError – If the model has no DMX parameters, or if there is a parsing problem