init#
- cosmicjellyfish.configs.config.init(options={}, specifications={}, observables=None, freepars=None, extfiles=None, fiducialpars=None, photobiaspars=None, photopars=None, IApars=None, PShotpars=None, spectrobiaspars=None, spectrononlinearpars=None, IMbiaspars=None, surveyName='Euclid', cosmoModel='w0waCDM', latexnames=None)[source]#
This class is to handle the configuration for the fishermatrix computation as well as the fiducial parameters. It then gives access to all global variables
- Parameters:
options (
dict, optional) – A dictionary that contains the global options for the calculation of the fishermatrix. A list of all possible keys are found belowspecifications (
dict, optional) – A dictionary containing the survey specifications. Defaults to the specifications in the .yaml of the survey specificationsobservables (
list, optional) – A list of strings for the different observablesfreepars (
dict, optional) – A dictionary containing all cosmological parameters to be varied and their corresponding rel. step sizesextfiles (
dict, optional) – A dictionary containing the path to the external files as well as how all the names of the files in the folder correspond to the cosmological quantities, units etc.fiducialpars (
dict, optional) – A dictionary containing the fiducial cosmological parametersphotobiaspars (
dict, optional) – A dictionary containing the specifications for the galaxy biases of the photometric probephotopars (
dict, optional) – A dictionary containing specifications for the window function’s galaxy distributionIApars (
dict, optional) – A dictionary containing the specifications for the intrinsic alignment effect in cosmic shearPShotpars (
dict, optional) – A dictionary containing the values of additional shotnoise of the spectroscopic probesspectrobiaspars (
dict, optional) – A dictionary containing the specifications for the galaxy biases of the spectroscopic probespectrononlinearpars (
dict, optional) – A dictionary containing the values of the non linear modeling parameters of the spectroscopic probeIMbiaspars (
dict, optional) – A dictionary containing the specifications for the galaxy biases of the spectroscopic intensity mapping probesurveyName (
str, optional) – String of the name of the survey for which the forecast is done. Defaults to Euclid with optimistic specificationscosmoModel (
str, optional) – A string of the name of the cosmological model used in the calculations. Defaults to flat “w0waCDM” cosmologylatexnames (
dict, optional) – A dictionary that contains the Latex names of the cosmological parametersOptions
-------
camb_path (
str) – Path to camb. Defaults to the camb in your current environmentspecs_dir (
str) – Path to the survey specifications. Defaults to the specs_dir_default. Names not found there are also searched in the packaged other_survey_specifications folderspecs_dir_default (
str) – Path to the default survey specifications. Defaults to the survey_specifications folder in the config directory of cosmicjellyfishsurvey_name (
str) – String of the names of the survey. Defaults to the name passed in the parameter surveyNamesurvey_name_photo (
str) – Name of the survey specifications file for a photometric probesurvey_name_spectro (
str) – Name of the survey specifications file for a spectrocopic probesurvey_name_radio_IM (
str) – Name of the survey specifications file for a line intensity mapping probe. Defaults to SKAO-IM-Redbookderivatives (
str) – String of the name of the derivative method. Either 3PT, 4PT_FWD, STEM or POLY. Defaults to 3PTnonlinear (
bool) – If True will do nonlinear corrections in the computation of the different observables. Defaults to Truenonlinear_photo (
bool) – If True will use the nonlinear power spectrum when calculation the angular power spectrum of the photometric probe. Defaults to Truebfs8terms (
bool) – If True will expand the observed power spectrum with \(\sigma_8\) to match the IST:F recipe. Defaults to Truevary_bias_str (
str) – The root of the name of the bias parameters that should be varied in the spectroscopic probe. Defaults to ‘lnb’AP_effect (
bool) – If True the Alcock-Paczynsk effect will be considered in the spectroscopic probe. Defaults to TrueFoG_switch (
bool) – If True the finger of god effect will be modelled in the observed power spectrum of the spectroscopic probe. Defaults to TrueGCsp_linear (
bool) – If True there will be no nonlinear modelling used in the spectroscopic probe. Defaults to Falsefix_cosmo_nl (
bool) – If True and the nonlinear modeling parameters are not varied, then they will be fixed to the values computed in the fiducial cosmology. Else they will be recomputed in each sample cosmology. Defaults to TruePshot_nuisance_fiducial (
float) – Value of the fiducial additional shotnoise of the spectroscopic probe. Defaults to 0.0pivot_z_IA (
float) – Redshift on which the power law dependance in the eNLA model of intrinsic alignment should be normalized to. Defaults to 0.0accuracy (
int) – Global rescaling of the amount of points that are used in internal calculations or interpolations for the probes. Defaults to 1feedback (
int) – Number indicating the verbosity of the output. Higher numbers generally mean more output. Defaults to 2timing (
bool) – If True, print phase timings for Fisher calculations. Defaults to FalseactivateMG (
bool) – If True will also consider modified gravity in the calculations of the observables. Defaults to Falseexternal_activateMG (
bool) – If True while reading the external Files will also look for files specific to modified gravity modelscosmo_model (
str) – A string of the name of the cosmological model used in the calculations. Defaults to what was passed in the parameter cosmoModeloutroot (
str) – The name of the output files are always starting with CosmicFish_Version number_outroot. Defaults to ‘default_run’code (
str) – String of the method to obtain the cosmological functions such as the power spectrum. Either ‘camb’, ‘class’ or ‘external’. Defaults to ‘camb’memorize_cosmo (
bool) – If True will save and load cosmologies that have already been computed in the cache. Defaults to Falseresults_dir (
str) – Name of the folder in which the results should be saved. If the folder does not exist will create a new one. Defaults to ‘./results’boltzmann_yaml_path (
str) – Path to the configurations for the Einstein-Boltzmann solvers. Defaults to the boltzmann_yaml_files folder in the home directory of cosmicjellyfishclass_config_yaml (
str) – Path to the configurations for class. Defaults to ‘boltzmann_yaml_path/class/default.yaml’camb_config_yaml (
str) – Path to the configurations for camb. Defaults to ‘boltzmann_yaml_path/camb/default.yaml’fishermatrix_file_extension (
str) – Specifies in what kind of file the result Fisher matrix should be saved. Defaults to ‘.txt’savgol_polyorder (
float) – Order of the Savitzky-Golay filter. Defaults to 3 matching the IST:F recipesavgol_width (
float) – Width of the Savitzky-Golay filter. Defaults to ~1.359savgol_internalsamples (
float) – How many points on a logarithmic k axis should be taken to apply the Savitzky-Golay filter to. Defaults to 800savgol_internalkmin (
float) – Lowest wavenumber that should be used when calculating when applying the Savitzky-Golay filter. Defaults to 1e-3. Together with the other defaults this is matching the IST:F recipeeps_cosmopars (
float) – The default rel. step size of the cosmological parameters if none have been passed. Defaults to 1e-2eps_gal_nuispars (
float) – The default rel. step size of the bias parameters if none have been passed. Defaults to 1e-4GCsp_Tracer (
str) – What power spectrum should be used as the underlying power spectrum the spectroscopic probe’s galaxy clustering traces. Either ‘matter’ for the total matter spectrum or ‘clustering’ for CDM+baryons. Defaults to ‘matter’GCph_Tracer (
str) – What power spectrum should be used as the underlying power spectrum the photometric probe’s galaxy clustering traces. Either ‘matter’ for the total matter spectrum or ‘clustering’ for CDM+baryons. Defaults to ‘matter’ShareDeltaNeff (
bool) – If True, the variation of the cosmological parameter Neff is understood as a rescaling of the decoupling temperature of neutrinos. If False any additional Neff is accounted for as additional massless relics.kh_rescaling_bug (
bool) – If true, the internal wavenumber in the computation of the spectroscopic probe’s power spectrum computation will be rescaled by an adtional factor h/hfid. Default Falsekh_rescaling_beforespecerr_bug (
bool) – If True, the internal scales in the computation of the spectroscopic probe’s resolution error will be rescaled by an adtional factor h/hfid. Default False
- cosmicjellyfish.configs.config.settings#
A dictionary containing all the global options passed as well as the default values of the ones not passed
- Type:
dict,global
- cosmicjellyfish.configs.config.external#
A dictionary containing all paths to the external files, how all the names of the files in the folder correspond to the cosmological quantities, the units etc. Will be None if no external files are given
- Type:
dict,global
- cosmicjellyfish.configs.config.input_type#
String of the method to obtain the cosmological functions such as the power spectrum. Either ‘camb’, ‘class’ or ‘external’
- Type:
str,global
- cosmicjellyfish.configs.config.specs#
A dictionary containing the survey specifications
- Type:
dict,global
- cosmicjellyfish.configs.config.boltzmann_classpars#
A dictionary containing the configuration, precision parameters, and fixed cosmological parameters for class
- Type:
dict,global
- cosmicjellyfish.configs.config.boltzmann_cambpars#
A dictionary containing the configuration, precision parameters, and fixed cosmological parameters for camb
- Type:
dict,global
- cosmicjellyfish.configs.config.survey_equivalence#
Part of the Parser, will correspond the passed survey to the name of a specifications file
- Type:
callable,global
- cosmicjellyfish.configs.config.obs#
A list of strings for the different observables
- Type:
list,global
- cosmicjellyfish.configs.config.freeparams#
A dictionary containing all names and the corresponding rel. step size for all parameters
- Type:
dict,global
- cosmicjellyfish.configs.config.fiducialparams#
A dictionary containing all fiducial values for the cosmological parameters
- Type:
dict,global
- cosmicjellyfish.configs.config.fiducialcosmo#
An instance of cosmo_functions of the fiducial cosmology, this contains all the cosmological functions and quantities computed from them
- Type:
- cosmicjellyfish.configs.config.biasparams#
a dictionary containing the specifications for the galaxy biases of the photometric probe
- Type:
dict,global
- cosmicjellyfish.configs.config.photoparams#
A dictionary containing specifications for the window function’s galaxy distribution of the photometric probe
- Type:
dict,global
- cosmicjellyfish.configs.config.IAparams#
A dictionary containing the specifications for the intrinsic alignment effect in cosmic shear of the photometric probe
- Type:
dict,global
- cosmicjellyfish.configs.config.PShotparams#
A dictionary containing the values of the additional shot noise per bin dictionary containing the values of the additional shot noise per bin for the spectroscopic probe
- Type:
dict,global
- cosmicjellyfish.configs.config.Spectrobiasparams#
A dictionary containing the specifications for the galaxy biases of the spectroscopic probe
- Type:
dict,global
- cosmicjellyfish.configs.config.Spectrononlinearparams#
A dictionary containing the values of the non linear modeling parameters entering FOG and the dewiggling weight per bin for the spectroscopic probe
- Type:
dict,global