pint.simulation.make_fake_toas

pint.simulation.make_fake_toas(ts: TOAs, model: TimingModel, add_noise: bool = False, add_correlated_noise: bool = False, name: str = 'fake', subtract_mean: bool = True) TOAs[source]

Make toas from an array of times

Can include alternating frequencies if fed an array of frequencies, only works with one observatory at a time

Parameters:
  • ts (pint.toa.TOAs) – Input TOAs to match

  • model (pint.models.timing_model.TimingModel) – current model

  • add_noise (bool, optional) – Add noise to the TOAs (otherwise error just populates the column)

  • add_correlated_noise (bool, optional) – Add correlated noise to the TOAs if it’s present in the timing mode.

  • name (str, optional) – Name for the TOAs (goes into the flags)

  • subtract_mean (bool, optional) – Controls whether mean will be subtracted from the residuals when making fake TOAs

Returns:

TOAs – object with toas matching toas but with residuals starting at zero (but then with optional noise)

Return type:

pint.toa.TOAs

Notes

add_noise respects any EFAC or EQUAD present in the model