classy-szfast 0.0.25.post8__tar.gz → 0.0.25.post10__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.post8 → classy_szfast-0.0.25.post10}/PKG-INFO +2 -2
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast/classy_szfast.py +43 -0
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast.egg-info/PKG-INFO +2 -2
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast.egg-info/requires.txt +1 -1
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/pyproject.toml +2 -2
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/README.md +0 -0
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast/__init__.py +0 -0
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast/classy_sz.py +0 -0
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast/config.py +0 -0
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast/cosmopower.py +0 -0
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast/cosmopower_jax.py +0 -0
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast/cosmosis_classy_szfast_interface.py +0 -0
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast/custom_bias/__init__.py +0 -0
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast/custom_bias/custom_bias.py +0 -0
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast/custom_profiles/__init__.py +0 -0
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast/custom_profiles/custom_profiles.py +0 -0
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast/emulators_meta_data.py +0 -0
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast/pks_and_sigmas.py +0 -0
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast/restore_nn.py +0 -0
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast/suppress_warnings.py +0 -0
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast/utils.py +0 -0
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast.egg-info/SOURCES.txt +0 -0
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast.egg-info/dependency_links.txt +0 -0
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast.egg-info/top_level.txt +0 -0
- {classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: classy_szfast
|
3
|
-
Version: 0.0.25.
|
3
|
+
Version: 0.0.25.post10
|
4
4
|
Summary: The accelerator of the class_sz code from https://github.com/CLASS-SZ
|
5
5
|
Maintainer-email: Boris Bolliet <bb667@cam.ac.uk>
|
6
6
|
License: MIT
|
@@ -11,6 +11,6 @@ Requires-Dist: numpy>=1.19.0
|
|
11
11
|
Requires-Dist: Cython>=0.29.21
|
12
12
|
Requires-Dist: tensorflow
|
13
13
|
Requires-Dist: mcfit
|
14
|
-
Requires-Dist: get_cosmopower_emus
|
14
|
+
Requires-Dist: get_cosmopower_emus==0.0.15
|
15
15
|
Requires-Dist: class_sz_data
|
16
16
|
Requires-Dist: cosmopower-jax
|
@@ -294,6 +294,16 @@ class Class_szfast(object):
|
|
294
294
|
H = self.hz_interp(z)
|
295
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
296
|
return rho_crit
|
297
|
+
|
298
|
+
def get_volume_dVdzdOmega_at_z(self,z,params_values_dict=None):
|
299
|
+
params_values = self.get_all_relevant_params(params_values_dict)
|
300
|
+
self.calculate_hubble(**params_values_dict)
|
301
|
+
Ez = self.hz_interp(z)/self.hz_interp(0.)
|
302
|
+
self.calculate_chi(**params_values_dict)
|
303
|
+
dA = self.chi_interp(z)/(1.+z)
|
304
|
+
rz = dA*(1.+z)*params_values['h']
|
305
|
+
dVdzdOmega = 2.99792458e8/1.0e5*rz*rz/Ez
|
306
|
+
return dVdzdOmega
|
297
307
|
|
298
308
|
def get_r_delta_of_m_delta_at_z(self,delta,m_delta,z,params_values_dict=None):
|
299
309
|
if params_values_dict:
|
@@ -602,6 +612,39 @@ class Class_szfast(object):
|
|
602
612
|
self.cszfast_pk_grid_dsigma2_flat = dvar.flatten()
|
603
613
|
|
604
614
|
return 0
|
615
|
+
|
616
|
+
def calculate_vrms2(self,**params_values_dict):
|
617
|
+
# k = self.cszfast_pk_grid_k
|
618
|
+
k = np.geomspace(1e-5,1e1,1000)
|
619
|
+
|
620
|
+
|
621
|
+
# z = self.cszfast_pk_grid_z
|
622
|
+
z = np.linspace(0,3,800)
|
623
|
+
|
624
|
+
# P = self.cszfast_pk_grid_pk
|
625
|
+
P = np.asarray([self.get_pkl_at_k_and_z(k,zpx) for zpx in z])
|
626
|
+
|
627
|
+
a = 1/(1+z)
|
628
|
+
H = self.get_hubble(z)
|
629
|
+
z0 = 0.
|
630
|
+
|
631
|
+
k0 = 1e-2
|
632
|
+
pks = self.get_pkl_at_k_and_z(k0,z)
|
633
|
+
pks0 = self.get_pkl_at_k_and_z(k0,z0)
|
634
|
+
D = np.sqrt(pks/pks0)
|
635
|
+
|
636
|
+
f = -np.gradient(np.log(D), np.log(1 + z))
|
637
|
+
|
638
|
+
W = f*a*H
|
639
|
+
x = np.log(k)
|
640
|
+
I = 1/3*W[:,None]**2*P*k/2/np.pi**2
|
641
|
+
|
642
|
+
|
643
|
+
vrms2 = scipy.integrate.simpson(I,x=x,axis=1)
|
644
|
+
|
645
|
+
|
646
|
+
self.cszfast_3c2vrms2 = np.interp(self.cszfast_pk_grid_z,z,np.log(vrms2*3.*Const._c_**2*1e-6))
|
647
|
+
return 0
|
605
648
|
|
606
649
|
|
607
650
|
def calculate_sigma8_and_der(self,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: classy_szfast
|
3
|
-
Version: 0.0.25.
|
3
|
+
Version: 0.0.25.post10
|
4
4
|
Summary: The accelerator of the class_sz code from https://github.com/CLASS-SZ
|
5
5
|
Maintainer-email: Boris Bolliet <bb667@cam.ac.uk>
|
6
6
|
License: MIT
|
@@ -11,6 +11,6 @@ Requires-Dist: numpy>=1.19.0
|
|
11
11
|
Requires-Dist: Cython>=0.29.21
|
12
12
|
Requires-Dist: tensorflow
|
13
13
|
Requires-Dist: mcfit
|
14
|
-
Requires-Dist: get_cosmopower_emus
|
14
|
+
Requires-Dist: get_cosmopower_emus==0.0.15
|
15
15
|
Requires-Dist: class_sz_data
|
16
16
|
Requires-Dist: cosmopower-jax
|
@@ -3,7 +3,7 @@ requires = ["setuptools", "wheel"]
|
|
3
3
|
build-backend = "setuptools.build_meta"
|
4
4
|
|
5
5
|
[project]
|
6
|
-
version = "0.0.25.
|
6
|
+
version = "0.0.25.post10"
|
7
7
|
license = { text = "MIT" }
|
8
8
|
name = "classy_szfast"
|
9
9
|
maintainers = [{name = "Boris Bolliet",email="bb667@cam.ac.uk"}]
|
@@ -14,7 +14,7 @@ dependencies = [
|
|
14
14
|
"Cython>=0.29.21",
|
15
15
|
"tensorflow",
|
16
16
|
"mcfit",
|
17
|
-
"get_cosmopower_emus",
|
17
|
+
"get_cosmopower_emus==0.0.15",
|
18
18
|
"class_sz_data",
|
19
19
|
"cosmopower-jax"
|
20
20
|
]
|
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.post8 → classy_szfast-0.0.25.post10}/classy_szfast/custom_bias/__init__.py
RENAMED
File without changes
|
{classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast/custom_bias/custom_bias.py
RENAMED
File without changes
|
{classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast/custom_profiles/__init__.py
RENAMED
File without changes
|
File without changes
|
{classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast/emulators_meta_data.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast/suppress_warnings.py
RENAMED
File without changes
|
File without changes
|
{classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{classy_szfast-0.0.25.post8 → classy_szfast-0.0.25.post10}/classy_szfast.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|