redback.simulate_transients.SimulateGenericTransient

class redback.simulate_transients.SimulateGenericTransient(model, parameters, times, model_kwargs, data_points, seed=1234, multiwavelength_transient=False, noise_term=0.2)[source]

Bases: object

__init__(model, parameters, times, model_kwargs, data_points, seed=1234, multiwavelength_transient=False, noise_term=0.2)[source]

A generic interface to simulating transients

Parameters:
  • model – String corresponding to redback model

  • parameters – Dictionary of parameters describing a single transient

  • times – Time values that the model is evaluated from

  • model_kwargs – Additional keyword arguments, must include all the keyword arguments required by the model. Refer to the model documentation for details

  • data_points – Number of data points to randomly sample. This will randomly sample data_points in time and in bands or frequency.

  • seed – random seed for reproducibility

  • multiwavelength_transient – Boolean. If True, the model is assumed to be a transient which has multiple bands/frequency and the data points are sampled in bands/frequency as well, rather than just corresponding to one wavelength/filter. This also allows the same time value to be sampled multiple times.

  • noise_term – Float. Factor which is multiplied by the model flux/magnitude to give the sigma.

__call__(**kwargs)

Call self as a function.

Methods

__init__(model, parameters, times, ...[, ...])

A generic interface to simulating transients