BuildConfig

class vega.BuildConfig(options={}, overwrite=False)[source]

Build and manage config files based on available templates

Initialize the model options that are not tracer or correlation specific.

Parameters:options (dict, optional) –

Dictionary with model options, by default {} Here is a list of options:

scale_params: string from [‘ap_at’, ‘phi_alpha’, ‘aiso_epsilon’], default ‘ap_at’ template: string with custom_link, default ‘PlanckDR16/PlanckDR16.fits’ full_shape: Bool, default False full_shape_alpha: Bool, default False smooth_scaling: Bool, default False

small_scale_nl: Bool, default False small_scale_nl_cross: Bool, default False bao_broadening: Bool, default False uv_background: Bool, default False velocity_dispersion: string from [None, ‘lorentz’, ‘gauss’], default None radiation_effects: Bool, default False

hcd_model: string from [None, ‘Rogers’, ‘fvoigt’, ‘sinc’], default None fvoigt_model: string, default exp fullshape_smoothing: string from [None, ‘gauss’, ‘gauss_iso’, ‘exp’], default None metals: List can include [‘all’, ‘SiII(1190)’, ‘SiII(1193)’, ‘SiIII(1207)’,

’SiII(1260)’, ‘CIV(eff)’], default None
build(correlations, fit_type, fit_info, out_path, parameters={}, name_extension=None)[source]

Build Vega config files and write them to an output directory

Parameters:
  • correlations (dict) –

    Information for each correlation. It must contain the path to the measured correlation, and the path to metal files if metals were requested. Optionally specify scale cuts. List of options:

    corr_path: string metal_path: string r-min: float, default 10 r-max: float, default 180 rt-min: float, default 0 fast_metals: bool, default False binsize: int, default 4 (deprecated) broadband: broadband string configuration
  • fit_type (string) – Name of the fit. Includes the name of the correlations with the two tracers separated by an “x” (e.g. lyaxqso), and different correlations separated by an underscore (e.g. lyaxlya_lyaxqso). If unsure check the templates folder to see all possibilities.
  • fit_info (dict) –

    Fit information. Must contain a list of sampled parameters and the effective redshift. List of options:

    fitter: bool, default True sampler: bool, default False bias_beta_config: dict with ‘tracer’: ‘bias_beta’, ‘bias_eta_beta’, ‘bias_bias_eta’ zeff: float, default None zeff_rmin: float, default 0 zeff_rmax: float, default 300 sample_params: list or dict with vega setup (par_name: min max start step) priors: dict with vega setup (par_name: ‘gaussian mean sigma’) Polychord: dict with Polychord setup
  • out_path (string) – Path to directory where to write the config files
  • parameters (dict, optional) – Parameter values to write to the main config, by default {}
  • name_extension (string, optional) – Optional string to add to the config file names, by default None
Returns:

Path to the main config file

Return type:

string

static get_growth_rate(z, Omega_m=0.3153)[source]

Compute default growth rate at redshift z

Parameters:
  • z (float) – Redshift
  • Omega_m (float, optional) – Matter fraction, by default 0.3153
Returns:

Default growth rate

Return type:

float

static get_lya_bias(z)[source]

Compute default Lya bias at redshift z

Parameters:z (float) – Redshift
Returns:Default Lya bias
Return type:float
static get_qso_bias(z)[source]

Compute default QSO bias at redshift z

Parameters:z (float) – Redshift
Returns:Default QSO bias
Return type:float
static get_zeff(data_paths, rmin=0.0, rmax=300.0)[source]

Compute effective redshift of all correlations

Parameters:
  • data_paths (List[string]) – List of paths to exported picca correlations
  • rmin (float, optional) – Minimum separation, by default 0.
  • rmax (float, optional) – Maximum separation, by default 300.
Returns:

Effective redshift

Return type:

float

parameters

Parameters property

Returns:Parameters
Return type:dict