PyCosmo.config package

Submodules

PyCosmo.config.load_parameters_ini module

PyCosmo.config.load_parameters_ini.check_bunch(bunch, specification={'computations': {'n_cores': <class 'int'>}, 'cosmology': {'N_massive_nu': <class 'float'>, 'N_massless_nu': <class 'float'>, 'Tcmb': <class 'float'>, 'Yp': <class 'float'>, 'flat_universe': <class 'bool'>, 'h': <class 'float'>, 'massive_nu_total_mass': <class 'float'>, 'n': <class 'float'>, 'omega_b': <class 'float'>, 'omega_l': (None, <class 'float'>), 'omega_m': <class 'float'>, 'w0': <class 'float'>, 'wa': <class 'float'>}, 'internal:boltzmann_solver': {'boltzmann_atol': (<class 'float'>, <class 'numpy.ndarray'>), 'boltzmann_h0': <function <lambda>>, 'boltzmann_max_bdf_order': (1, 2, 3, 4, 5), 'boltzmann_max_iter': <class 'int'>, 'boltzmann_rtol': (<class 'float'>, <class 'numpy.ndarray'>), 'dt_0': (None, <class 'float'>), 'fast_solver': <class 'bool'>, 'initial_conditions': ['class', 'cosmics', 'camb'], 'lna_0': (None, <class 'float'>), 'sec_factor': <function <lambda>>, 'table_size': <class 'int'>, 'y_0': (None, <class 'numpy.ndarray'>)}, 'internal:comparison_modifications': {'cosmo_nudge': <function <lambda>>, 'omega_suppress': <class 'bool'>, 'suppress_rad': <class 'bool'>}, 'internal:linear_perturbation_approx_growth_factor': {'ainit_growth': <class 'float'>, 'atol_growth': <class 'float'>, 'h0_growth': <class 'float'>, 'rtol_growth': <class 'float'>}, 'internal:observables': {'a_size': <class 'int'>, 'k_size': <class 'int'>}, 'internal:physical_constants': {'A10': <class 'float'>, 'G': <class 'float'>, 'c': <class 'float'>, 'evc2': <class 'float'>, 'f12': <class 'float'>, 'hbar': <class 'float'>, 'kb': <class 'float'>, 'mp': <class 'float'>, 'mpc': <class 'float'>, 'msun': <class 'float'>, 'sigmat': <class 'float'>}, 'linear_perturbations': {'k_pivot': (None, <class 'float'>), 'lin_halo_bias_type': ['MW', 'ST', 'SMT', 'Ti'], 'pk_norm': <class 'float'>, 'pk_norm_type': ['sigma8', 'deltah', 'A_s'], 'pk_type': ['EH', 'BBKS', 'BBKS_CCL', 'boltz']}, 'nonlinear_perturbations': {'multiplicity_fnct': ['PS', 'ST', 'Ti', 'Wa'], 'pk_nonlin_type': ['halofit', 'rev_halofit', 'mead', 'HaloModel', 'HI', None]}, 'nonlinear_perturbations:darkmatter_halos': {'halo_profile': <class 'int'>, 'max_halo_mass': <class 'float'>, 'min_halo_mass': <class 'float'>}, 'nonlinear_perturbations:mead': {'A_mead': <class 'float'>, 'baryons': ['DMonly', 'REF', 'AGN', 'DBLIM'], 'eta0_mead': <class 'float'>, 'eta0_mead_equation': <class 'bool'>, 'eta0_mead_equation_version': [1], 'npoints_k': <class 'int'>}, 'recombination': {'F': <class 'float'>, 'fDM': <class 'float'>, 'recomb': ['recfast++', 'cosmics', 'class'], 'recomb_dir': (None, <class 'str'>), 'recomb_filename': (None, <class 'str'>)}, 'tabulation': {'tabulation': ['off', 'bao', 'manual', 'default_precise', 'default_fast'], 'tabulation_k_grid': (None, <class 'numpy.ndarray'>), 'tabulation_max_k': (None, <class 'float'>), 'tabulation_min_k': (None, <class 'float'>)}})[source]
PyCosmo.config.load_parameters_ini.check_flattened(user_parameters, specification={'A10': <class 'float'>, 'A_mead': <class 'float'>, 'F': <class 'float'>, 'G': <class 'float'>, 'N_massive_nu': <class 'float'>, 'N_massless_nu': <class 'float'>, 'Tcmb': <class 'float'>, 'Yp': <class 'float'>, 'a_size': <class 'int'>, 'ainit_growth': <class 'float'>, 'atol_growth': <class 'float'>, 'baryons': ['DMonly', 'REF', 'AGN', 'DBLIM'], 'boltzmann_atol': (<class 'float'>, <class 'numpy.ndarray'>), 'boltzmann_h0': <function <lambda>>, 'boltzmann_max_bdf_order': (1, 2, 3, 4, 5), 'boltzmann_max_iter': <class 'int'>, 'boltzmann_rtol': (<class 'float'>, <class 'numpy.ndarray'>), 'c': <class 'float'>, 'cosmo_nudge': <function <lambda>>, 'dt_0': (None, <class 'float'>), 'eta0_mead': <class 'float'>, 'eta0_mead_equation': <class 'bool'>, 'eta0_mead_equation_version': [1], 'evc2': <class 'float'>, 'f12': <class 'float'>, 'fDM': <class 'float'>, 'fast_solver': <class 'bool'>, 'flat_universe': <class 'bool'>, 'h': <class 'float'>, 'h0_growth': <class 'float'>, 'halo_profile': <class 'int'>, 'hbar': <class 'float'>, 'initial_conditions': ['class', 'cosmics', 'camb'], 'k_pivot': (None, <class 'float'>), 'k_size': <class 'int'>, 'kb': <class 'float'>, 'lin_halo_bias_type': ['MW', 'ST', 'SMT', 'Ti'], 'lna_0': (None, <class 'float'>), 'massive_nu_total_mass': <class 'float'>, 'max_halo_mass': <class 'float'>, 'min_halo_mass': <class 'float'>, 'mp': <class 'float'>, 'mpc': <class 'float'>, 'msun': <class 'float'>, 'multiplicity_fnct': ['PS', 'ST', 'Ti', 'Wa'], 'n': <class 'float'>, 'n_cores': <class 'int'>, 'npoints_k': <class 'int'>, 'omega_b': <class 'float'>, 'omega_l': (None, <class 'float'>), 'omega_m': <class 'float'>, 'omega_suppress': <class 'bool'>, 'pk_nonlin_type': ['halofit', 'rev_halofit', 'mead', 'HaloModel', 'HI', None], 'pk_norm': <class 'float'>, 'pk_norm_type': ['sigma8', 'deltah', 'A_s'], 'pk_type': ['EH', 'BBKS', 'BBKS_CCL', 'boltz'], 'recomb': ['recfast++', 'cosmics', 'class'], 'recomb_dir': (None, <class 'str'>), 'recomb_filename': (None, <class 'str'>), 'rtol_growth': <class 'float'>, 'sec_factor': <function <lambda>>, 'sigmat': <class 'float'>, 'suppress_rad': <class 'bool'>, 'table_size': <class 'int'>, 'tabulation': ['off', 'bao', 'manual', 'default_precise', 'default_fast'], 'tabulation_k_grid': (None, <class 'numpy.ndarray'>), 'tabulation_max_k': (None, <class 'float'>), 'tabulation_min_k': (None, <class 'float'>), 'w0': <class 'float'>, 'wa': <class 'float'>, 'y_0': (None, <class 'numpy.ndarray'>)})[source]
PyCosmo.config.load_parameters_ini.fix_package_internal_path(path)[source]
PyCosmo.config.load_parameters_ini.load_parameters_ini(path, **kw)[source]
PyCosmo.config.load_parameters_ini.match(to_check, specification)[source]

Module contents