effects.core#

This module defines the Effect class to construct sncosmo effects with associated parameter models.

class skysurvey.effects.core.Effect(effect=None, name=None, frame=None, model={})[source]#

Bases: object

A class to represent effects (e.g. dust, scatter) to be applied to a transient template.

Parameters:
  • effect (sncosmo.PropagationEffect) – Propagation effect.

  • name (str) – Name of the effect.

  • frame (str) – ‘rest’: rest-frame ‘obs’: observator-frame

  • model (dict) – model parameters.

classmethod from_sncosmo(effect, name, frame, model={})[source]#

Load an effect from a sncosmo effect.

Parameters:
  • effect (sncosmo.PropagationEffect) – Propagation effect.

  • name (str) – Name of the effect.

  • frame (str) – ‘rest’: rest-frame ‘obs’: observator-frame

  • model (dict) – model parameters.

Return type:

Effect

classmethod from_name(name, which=None)[source]#

Load an effect from its name.

Parameters:
  • name (str) – Name of the effect. Could be: mw, hostdust, scatter.

  • which (str) –

    which model to use for the effect.

    • for mw: ccm89 (default)

    • for hostdust: ccm89 (default)

    • for scatter: g10, c11

Return type:

Effect

property effect#

Access the effect.

property name#

The name of the effect.

property frame#

Frame of the effect.

property model#

Model of the effect.