sheap.Utils.Constants module
Constants and Configuration
This module defines physical constants and loads configuration data from YAML files, such as parameter limits, single-epoch estimators, and bolometric corrections.
- DEFAULT_C_KMS
Speed of light in km/s (
299792.458).- Type:
float
- cm_per_mpc
Conversion factor from megaparsecs to centimeters (
3.08568e24).- Type:
float
- DEFAULT_LIMITS
Default parameter limits loaded from
DefaultLimits.yaml.- Type:
dict
- SINGLE_EPOCH_ESTIMATORS
Calibration recipes for single-epoch black hole mass estimation, loaded from
SingleEpochEstimators.yaml.- Type:
dict
- BOL_CORRECTIONS
Bolometric corrections for AGN luminosities, loaded from
BolometricCorrections.yaml.- Type:
dict
- Functions
- ---------
- read_yaml(p
Load and cache a YAML file into a Python dictionary.
- Type:
Path) -> dict
- cm_per_mpc: float = 3.08568e+24
Megaparsec in centimeters
- read_yaml(p)[source]
Load a YAML file into a Python dictionary, with caching.
- Parameters:
p (Path) – Path to the YAML file.
- Returns:
Parsed YAML contents.
- Return type:
dict
- DEFAULT_C_KMS: float = 299792.458
Speed of light in km/s