classy-szfast 0.0.25.post20__tar.gz → 0.0.25.post22__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.post20 → classy_szfast-0.0.25.post22}/PKG-INFO +1 -1
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast/classy_szfast.py +15 -4
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast/cosmopower_jax.py +1 -1
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast/utils.py +1 -1
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast.egg-info/PKG-INFO +1 -1
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/pyproject.toml +1 -1
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/README.md +0 -0
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast/__init__.py +0 -0
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast/classy_sz.py +0 -0
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast/config.py +0 -0
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast/cosmopower.py +0 -0
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast/cosmosis_classy_szfast_interface.py +0 -0
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast/custom_bias/__init__.py +0 -0
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast/custom_bias/custom_bias.py +0 -0
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast/custom_profiles/__init__.py +0 -0
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast/custom_profiles/custom_profiles.py +0 -0
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast/emulators_meta_data.py +0 -0
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast/pks_and_sigmas.py +0 -0
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast/restore_nn.py +0 -0
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast/suppress_warnings.py +0 -0
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast.egg-info/SOURCES.txt +0 -0
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast.egg-info/dependency_links.txt +0 -0
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast.egg-info/requires.txt +0 -0
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast.egg-info/top_level.txt +0 -0
- {classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/setup.cfg +0 -0
@@ -13,7 +13,7 @@ from mcfit import TophatVar
|
|
13
13
|
from scipy.interpolate import CubicSpline
|
14
14
|
import pickle
|
15
15
|
import jax
|
16
|
-
jax.config.update("jax_enable_x64",
|
16
|
+
jax.config.update("jax_enable_x64", True)
|
17
17
|
import jax.numpy as jnp
|
18
18
|
import jax.scipy as jscipy
|
19
19
|
|
@@ -131,7 +131,16 @@ class Class_szfast(object):
|
|
131
131
|
self.pow = jnp.power
|
132
132
|
|
133
133
|
self.sigma_B = 2. * self.pow(self.pi,5) * self.pow(Const._k_B_,4) / 15. / self.pow(Const._h_P_,3) / self.pow(Const._c_,2)
|
134
|
-
|
134
|
+
# print('sigma_B',self.sigma_B)
|
135
|
+
# print('pi',self.pi)
|
136
|
+
# print('k_B',Const._k_B_)
|
137
|
+
# print('h_P',Const._h_P_)
|
138
|
+
# print('c',Const._c_)
|
139
|
+
# print('pow(pi,5)',self.pow(self.pi,5))
|
140
|
+
# print('pow(k_B,4)',self.pow(Const._k_B_,4)) ## this doesnt work if float64 is disabled
|
141
|
+
# print('15.',15.)
|
142
|
+
# print('pow(h_P,3)',self.pow(Const._h_P_,3)) ## this doesnt work if float64 is disabled
|
143
|
+
# print('pow(c,2)',self.pow(Const._c_,2))
|
135
144
|
self.linspace = jnp.linspace
|
136
145
|
self.geomspace = jnp.geomspace
|
137
146
|
self.arange = jnp.arange
|
@@ -706,6 +715,8 @@ class Class_szfast(object):
|
|
706
715
|
self.cp_predicted_der = self.cp_der_nn[self.cosmo_model].ten_to_predictions_np(params_dict)[0]
|
707
716
|
self.sigma8 = self.cp_predicted_der[1]
|
708
717
|
self.Neff = self.cp_predicted_der[4]
|
718
|
+
self.ra_star = self.cp_predicted_der[12]
|
719
|
+
|
709
720
|
return 0
|
710
721
|
|
711
722
|
|
@@ -830,7 +841,7 @@ class Class_szfast(object):
|
|
830
841
|
pk_re = self.transpose(pk_re)
|
831
842
|
|
832
843
|
|
833
|
-
return pk_re, k_arr
|
844
|
+
return pk_re.flatten(), k_arr
|
834
845
|
|
835
846
|
|
836
847
|
def calculate_pknl_at_z(self,
|
@@ -878,7 +889,7 @@ class Class_szfast(object):
|
|
878
889
|
pk_re = self.transpose(pk_re)
|
879
890
|
|
880
891
|
|
881
|
-
return pk_re, k_arr
|
892
|
+
return pk_re.flatten(), k_arr
|
882
893
|
|
883
894
|
|
884
895
|
def calculate_hubble(self,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
from .config import path_to_class_sz_data
|
2
2
|
import numpy as np
|
3
3
|
import jax
|
4
|
-
jax.config.update("jax_enable_x64",
|
4
|
+
jax.config.update("jax_enable_x64", True)
|
5
5
|
import jax.numpy as jnp
|
6
6
|
from .restore_nn import Restore_NN
|
7
7
|
from .restore_nn import Restore_PCAplusNN
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast/custom_bias/__init__.py
RENAMED
File without changes
|
{classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast/custom_bias/custom_bias.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast/emulators_meta_data.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast/suppress_warnings.py
RENAMED
File without changes
|
{classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast.egg-info/requires.txt
RENAMED
File without changes
|
{classy_szfast-0.0.25.post20 → classy_szfast-0.0.25.post22}/classy_szfast.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|