lightcurvelynx.models.periodic_model

Classes

PeriodicModel

The base model for periodic sources.

Module Contents

class PeriodicModel(period, **kwargs)[source]

Bases: lightcurvelynx.models.physical_model.SEDModel, abc.ABC

The base model for periodic sources.

Parameterized values include:

  • dec - The object’s declination in degrees. [from BasePhysicalModel]

  • distance - The object’s luminosity distance in pc. [from BasePhysicalModel]

  • period - The period of the source, in days.

  • ra - The object’s right ascension in degrees. [from BasePhysicalModel]

  • redshift - The object’s redshift. [from BasePhysicalModel]

  • t0 - The t0 of the zero phase, date. [from BasePhysicalModel]

Parameters:
  • period (float) – The period of the source, in days.

  • **kwargs (dict, optional) – Any additional keyword arguments.

compute_sed(times, wavelengths, graph_state, **kwargs)[source]

Draw effect-free observations for this object.

Parameters:
  • times (numpy.ndarray) – A length T array of rest frame timestamps.

  • wavelengths (numpy.ndarray, optional) – A length N array of wavelengths.

  • graph_state (GraphState) – An object mapping graph parameters to their values.

  • **kwargs (dict, optional) – Any additional keyword arguments.

Returns:

flux_density – A length T x N matrix of SED values.

Return type:

numpy.ndarray