coolest.template.classes.lensing_entity#

Classes#

LensingEntity

Abstract lensing entity, typically a Galaxy or an MassField object.

Module Contents#

class LensingEntity(name: str, redshift: float, lensed: bool = False, mass_model: coolest.template.classes.mass_light_model.MassModel = None)[source]#

Abstract lensing entity, typically a Galaxy or an MassField object.

Parameters:
  • name (str) – Name of the entity (e.g., the name of the galaxy)

  • redshift (float) – Redshift of the entity, if known / assumed

  • lensed (bool) – Whether the entity is lensed or not

  • mass_model (MassModel, optional) – Mass model (i.e., a set of mass profiles), by default None

Raises:

ValueError – If the provided redshift is negative.

type = 'LensingEntity'[source]#
name[source]#
redshift[source]#
lensed = False[source]#
mass_model = None[source]#
property has_mass_profiles[source]#

Check if the galaxy has mass profiles.