rail.creation.engines.galaxy_population_components module

Abstract base class and derived class defining a generator for galaxy population galaxy_modelling components

The key feature is that the __call__ method takes a configuration file and returns a FitsHandle, and wraps the run method

class rail.creation.engines.galaxy_population_components.GalaxyGenerator(args, comm=None)[source]

Bases: RailStage

Base class for generating galaxy populations from library of galaxy_modelling components.

It takes as “input” a configuration file and provides as “output” a fits table compatible with the input accepted by rail_fsps.

config_options = {'output_mode': <ceci.config.StageParameter object>, 'seed': 12345}
inputs = [('input', '')]
name = 'Galaxy Generator'
outputs = [('output', <class 'rail.core.data.FitsHandle'>)]
class rail.creation.engines.galaxy_population_components.GalaxyPopulationGenerator(args, comm=None)[source]

Bases: GalaxyGenerator

Generator that creates galaxy populations from library of galaxy_modelling components. It requires the package gal_pop_model_components. Install gal_pop_model_components with the following command: git clone https://github.com/torluca/gal_pop_model_components cd gal_pop_model_components pip install -e .

Parameters:

min_wavelength (positive float) – The minimum wavelength of the rest-frame SED. Wavelength unit assumed to be Angstrom.

config_options = {'config_params_file': <ceci.config.StageParameter object>, 'luminosity_function_type': <ceci.config.StageParameter object>, 'output_mode': <ceci.config.StageParameter object>, 'sample_luminosity_function': <ceci.config.StageParameter object>, 'seed': 12345}
name = 'GalaxyPopulationGenerator'
run()[source]

Run method