pint.pint_matrix.DesignMatrixMaker

class pint.pint_matrix.DesignMatrixMaker(derivative_quantity=None, quantity_unit=None)[source]

Bases: object

Class for pint design matrix maker class.

Parameters:
  • derivative_quantity (str) – The differentiated quantity name. It will be used to search for the derivative functions. For instance, if derivative_quantity = ‘phase’, it will search for the ‘d_phase_d_param’ function in the model.

  • quantity_unit (astropy.units.unit object) – The unit of the derivative quantity.

Methods

__call__(data, model, derivative_params, offset=False, offset_padding=0.0)[source]

A general method to make design matrix.

Parameters:
  • data (pint.toa.TOAs object or other data object) – The data point where the derivatives are evaluated.

  • model (pint.models.TimingModel object) – The model that provides the derivatives.

  • derivative_params (list) – The parameter list for the derivatives ‘d_quantity_d_param’.

  • offset (bool, optional) – Add the implicit offset to the beginning of design matrix. Default is False. This is to match the current phase offset in the design matrix. This option will be ignored if a PhaseOffset component is present in the timing model.

  • offset_padding (float, optional) – if including offset, the value for padding.