slsim.Sources package¶
Subpackages¶
Submodules¶
slsim.Sources.galaxies module¶
- class slsim.Sources.galaxies.Galaxies(galaxy_list, kwargs_cut, cosmo, sky_area, list_type='astropy_table')[source]¶
Bases:
SourcePopBase
Class describing elliptical galaxies.
slsim.Sources.point_plus_extended_source module¶
- class slsim.Sources.point_plus_extended_sources.PointPlusExtendedSources(point_plus_extended_sources_list, cosmo, sky_area, kwargs_cut, variability_model=None, kwargs_variability_model=None, list_type='astropy_table')[source]¶
Bases:
Galaxies
,SourcePopBase
Class to describe point and extended sources.
slsim.Sources.quasars module¶
- class slsim.Sources.quasars.Quasars(quasar_list, cosmo, sky_area, variability_model=None, kwargs_variability_model=None)[source]¶
Bases:
SourcePopBase
Class to describe quasars as sources.
slsim.Sources.source module¶
- class slsim.Sources.source.Source(source_dict, variability_model=None, kwargs_variability=None)[source]¶
Bases:
object
This class provides source dictionary and variable magnitude of a individual source.
- property angular_size¶
Returns angular size of the source.
- property ellipticity¶
Returns ellipticity components of source.
- extended_source_magnitude(band)[source]¶
Get the magnitude of the extended source in a specific band.
- Parameters:
band (str) – Imaging band
- Returns:
Magnitude of the extended source in the specified band
- Return type:
float
- property n_sersic¶
Returns sersic index of the source.
- point_source_magnitude(band, image_observation_times=None)[source]¶
Get the magnitude of the point source in a specific band.
- Parameters:
band (str) – Imaging band
image_observation_times – Images observation time for an image.
- Returns:
Magnitude of the point source in the specified band
- Return type:
float
- property redshift¶
Returns source redshift.
slsim.Sources.source_pop_base module¶
- class slsim.Sources.source_pop_base.SourcePopBase(cosmo, sky_area, variability_model=None, kwargs_variability_model=None)[source]¶
Bases:
ABC
Base class with functions all source classes must have to be able to render populations.
- property kwargs_variability¶
- Returns:
dict of keyword arguments for the variability model.
- abstract source_number()[source]¶
Number of sources registered (within given area on the sky)
- Returns:
number of sources
- property variability_model¶
- Returns:
keyword for the variability model