pint.simulation.make_fake_toas_fromtim
- pint.simulation.make_fake_toas_fromtim(timfile: str | List[str] | Path, model: TimingModel, add_noise: bool = False, add_correlated_noise: bool = False, name: str = 'fake', subtract_mean: bool = True) TOAs [source]
Simulate fake TOAs with the same times as an input tim file
- Parameters:
timfile (str or list of strings or file-like) – Filename, list of filenames, or file-like object containing the TOA data.
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 evenly spaced toas spanning given start and end MJD with ntoas toas, with optional errors
- Return type:
See also