classy-szfast 0.0.25.post5__tar.gz → 0.0.25.post6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/PKG-INFO +1 -1
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast/classy_szfast.py +29 -0
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast/utils.py +2 -1
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast.egg-info/PKG-INFO +1 -1
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/pyproject.toml +1 -1
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/README.md +0 -0
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast/__init__.py +0 -0
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast/classy_sz.py +0 -0
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast/config.py +0 -0
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast/cosmopower.py +0 -0
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast/cosmopower_jax.py +0 -0
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast/cosmosis_classy_szfast_interface.py +0 -0
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast/custom_bias/__init__.py +0 -0
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast/custom_bias/custom_bias.py +0 -0
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast/custom_profiles/__init__.py +0 -0
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast/custom_profiles/custom_profiles.py +0 -0
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast/emulators_meta_data.py +0 -0
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast/pks_and_sigmas.py +0 -0
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast/restore_nn.py +0 -0
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast/suppress_warnings.py +0 -0
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast.egg-info/SOURCES.txt +0 -0
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast.egg-info/dependency_links.txt +0 -0
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast.egg-info/requires.txt +0 -0
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast.egg-info/top_level.txt +0 -0
- {classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/setup.cfg +0 -0
@@ -283,9 +283,38 @@ class Class_szfast(object):
|
|
283
283
|
params_values['Omega0_r'] = params_values['Omega0_ur']+params_values['Omega0_g']
|
284
284
|
params_values['Omega0_m_nonu'] = params_values['Omega0_m'] - params_values['Omega0_ncdm']
|
285
285
|
params_values['Omega0_cb'] = params_values['Omega0_m_nonu']
|
286
|
+
H0 = params_values['H0']*1.e3/Const._c_
|
287
|
+
params_values['Rho_crit_0'] = (3./(8.*self.pi*Const._G_*Const._M_sun_))*pow(Const._Mpc_over_m_,1)*self.pow(Const._c_,2)*self.pow(H0,2)/self.pow(params_values['h'],2)
|
286
288
|
return params_values
|
287
289
|
|
288
290
|
|
291
|
+
def get_rho_crit_at_z(self,z,params_values_dict=None):
|
292
|
+
params_values = self.get_all_relevant_params(params_values_dict)
|
293
|
+
self.calculate_hubble(**params_values_dict)
|
294
|
+
H = self.hz_interp(z)
|
295
|
+
rho_crit = (3./(8.*self.pi*Const._G_*Const._M_sun_))*pow(Const._Mpc_over_m_,1)*self.pow(Const._c_,2)*self.pow(H,2)/self.pow(params_values['h'],2)
|
296
|
+
return rho_crit
|
297
|
+
|
298
|
+
def get_r_delta_of_m_delta_at_z(self,delta,m_delta,z,params_values_dict=None):
|
299
|
+
if params_values_dict:
|
300
|
+
params_values = params_values_dict.copy()
|
301
|
+
else:
|
302
|
+
params_values = self.params_for_emulators
|
303
|
+
rho_crit = self.get_rho_crit_at_z(z,params_values_dict=params_values_dict)
|
304
|
+
return (m_delta*3./4./self.pi/delta/rho_crit)**(1./3.)
|
305
|
+
|
306
|
+
def get_nu_at_z_and_m(self,z,m,params_values_dict=None):
|
307
|
+
if params_values_dict:
|
308
|
+
params_values = params_values_dict.copy()
|
309
|
+
else:
|
310
|
+
params_values = self.params_for_emulators
|
311
|
+
|
312
|
+
delta_c = (3./20.)*self.pow(12.*self.pi,2./3.) # this is = 1.686470199841145
|
313
|
+
# note here we dont use matter dependent delta_c
|
314
|
+
# which would be multiplied by (1.+0.012299*log10(pvecback[pba->index_bg_Omega_m]));
|
315
|
+
sigma = 1.
|
316
|
+
return (delta_c/sigma)**2
|
317
|
+
|
289
318
|
|
290
319
|
def find_As(self,params_cp):
|
291
320
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast/custom_bias/__init__.py
RENAMED
File without changes
|
{classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast/custom_bias/custom_bias.py
RENAMED
File without changes
|
{classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast/custom_profiles/__init__.py
RENAMED
File without changes
|
File without changes
|
{classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast/emulators_meta_data.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast/suppress_warnings.py
RENAMED
File without changes
|
{classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast.egg-info/requires.txt
RENAMED
File without changes
|
{classy_szfast-0.0.25.post5 → classy_szfast-0.0.25.post6}/classy_szfast.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|