Welcome to popsynth’s documentation!

_images/logo.png

This framework provides an abstract way to generate survey populations from arbitrary luminosity functions and redshift distributions. Additionally, auxiliary quantities can be sampled and stored.

Populations can be saved and restored via an HDF5 files for later use. Population synthesis routines can be created via classes or structured YAML files.

Users can construct their own classes for spatial, luminosity, etc. distributions which can all be connected to arbitrarily complex selection functions.

Note

This is not Synth Pop. If you were expecting that… I suggest you check out Depeche Mode. Though, it is possible to combine coding and good music.

_images/pop.gif

API

Here you can find the documentation of all classes and methods:

popsynth

popsynth package

Subpackages

popsynth.aux_samplers package
Submodules
popsynth.aux_samplers.delta_aux_sampler module
popsynth.aux_samplers.lognormal_aux_sampler module
popsynth.aux_samplers.normal_aux_sampler module
popsynth.aux_samplers.plaw_aux_sampler module
popsynth.aux_samplers.sky_sampler module
popsynth.aux_samplers.trunc_normal_aux_sampler module
popsynth.aux_samplers.viewing_angle_sampler module
Module contents
popsynth.distributions package
Submodules
popsynth.distributions.bpl_distribution module
popsynth.distributions.cosmological_distribution module
popsynth.distributions.delta_distribution module
popsynth.distributions.flatland_distribution module
popsynth.distributions.log10_normal_distribution module
popsynth.distributions.log_normal_distribution module
popsynth.distributions.pareto_distribution module
popsynth.distributions.schechter_distribution module
popsynth.distributions.spherical_distribution module
popsynth.distributions.spiral_galaxy_distribution module
popsynth.distributions.uniform_distribution module
Module contents
popsynth.populations package
Submodules
popsynth.populations.bpl_population module
popsynth.populations.lognormal_population module
popsynth.populations.pareto_populations module
popsynth.populations.schechter_populations module
popsynth.populations.spatial_populations module
Module contents
popsynth.selection_probability package
Submodules
popsynth.selection_probability.flux_selectors module
popsynth.selection_probability.generic_selectors module
popsynth.selection_probability.selection_probability module
popsynth.selection_probability.spatial_selection module
Module contents
popsynth.utils package
Submodules
popsynth.utils.array_to_cmap module
popsynth.utils.configuration module
popsynth.utils.cosmology module
popsynth.utils.hdf5_utils module
popsynth.utils.logging module
popsynth.utils.meta module
popsynth.utils.package_data module
popsynth.utils.progress_bar module
popsynth.utils.registry module
popsynth.utils.rejection_sample module
popsynth.utils.spherical_geometry module
Module contents

Submodules

popsynth.auxiliary_sampler module
popsynth.distribution module
popsynth.population module
popsynth.population_synth module
popsynth.simulated_variable module

Module contents