synthesizer.emission_models.transformers.transformer

A module defining the Transformer abstract base class.

A Transformer defines an object which takes some form of emission and transforms it in some way. This could include attenuation, scaling, or any other transformation that can be applied to emission (either lines or a spectra). For now we only implement and use attenuation child classes.

Any Transformer class should inherit from this class and implement the required methods.

Classes

class synthesizer.emission_models.transformers.transformer.Transformer(required_params=())[source]

An abstract base class defining the Transformer interface.

A Transformer defines an object which takes some form of emission and transforms it in some way. This could include attenuation, scaling, or any other transformation that can be applied to emission (either lines or a spectra). For now we only implement and use attenuation child classes.

Any Transformer class should inherit from this class and implement the required methods.

Everything associated to this class is private and should not be accessed by the user. The child classes can present a public interface to the user which makes more sense in the specific context of the transformation. We only need to define these methods for use behind the scenes when generating emissions with an EmissionModel.

_transformer_type

The type of transformer. This is used to identify the transformer when applying it to an emission.

Type:

str

Examples using synthesizer.emission_models.transformers.transformer.Transformer

Camels example

Camels example

SC-SAM example

SC-SAM example

IGM transmission example

IGM transmission example

Photometry example

Photometry example

Generating Lines from a Parametric Galaxy

Generating Lines from a Parametric Galaxy

Generate parametric observed SED

Generate parametric observed SED

An example showing how to scale a galaxy’s mass by luminosity/flux.

An example showing how to scale a galaxy's mass by luminosity/flux.

Generate parametric galaxy SED

Generate parametric galaxy SED

Plot line of sight diagnostics

Plot line of sight diagnostics