classy-szfast 0.0.22__py3-none-any.whl → 0.0.24__py3-none-any.whl

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.
@@ -64,7 +64,10 @@ class Class_szfast(object):
64
64
  self.logA_fast = 0
65
65
 
66
66
 
67
- set_verbosity(params_settings["classy_sz_verbose"])
67
+ try:
68
+ set_verbosity(params_settings["classy_sz_verbose"])
69
+ except:
70
+ pass
68
71
  self.logger = logging.getLogger(__name__)
69
72
 
70
73
 
@@ -73,7 +76,7 @@ class Class_szfast(object):
73
76
 
74
77
 
75
78
  # cosmopower emulators
76
- self.cp_path_to_cosmopower_organization = path_to_cosmopower_organization + '/'
79
+ # self.cp_path_to_cosmopower_organization = path_to_cosmopower_organization + '/'
77
80
  self.cp_tt_nn = cp_tt_nn
78
81
  self.cp_te_nn = cp_te_nn
79
82
  self.cp_ee_nn = cp_ee_nn
@@ -43,7 +43,15 @@ emulator_dict['ede'] = {}
43
43
  emulator_dict['mnu-3states'] = {}
44
44
  emulator_dict['ede-v2'] = {}
45
45
 
46
-
46
+ ### note on ncdm:
47
+ # N_ncdm : 3
48
+ # m_ncdm : 0.02, 0.02, 0.02
49
+ # deg_ncdm: 1
50
+ # and
51
+ # N_ncdm: 1
52
+ # deg_ncdm: 3
53
+ # m_ncdm : 0.02
54
+ # are equivalent but deg_ncdm: 3 is much faster.
47
55
 
48
56
 
49
57
  emulator_dict['lcdm']['TT'] = 'TT_v1'
@@ -60,6 +68,11 @@ emulator_dict['lcdm']['HZ'] = 'HZ_v1'
60
68
  emulator_dict['lcdm']['S8Z'] = 'S8Z_v1'
61
69
  emulator_dict['lcdm']['default'] = {}
62
70
  emulator_dict['lcdm']['default']['tau_reio'] = 0.054
71
+ emulator_dict['lcdm']['default']['H0'] = 67.66
72
+ emulator_dict['lcdm']['default']['ln10^{10}A_s'] = 3.047
73
+ emulator_dict['lcdm']['default']['omega_b'] = 0.02242
74
+ emulator_dict['lcdm']['default']['omega_cdm'] = 0.11933
75
+ emulator_dict['lcdm']['default']['n_s'] = 0.9665
63
76
  emulator_dict['lcdm']['default']['N_ur'] = 2.0328
64
77
  emulator_dict['lcdm']['default']['N_ncdm'] = 1
65
78
  emulator_dict['lcdm']['default']['m_ncdm'] = 0.06
@@ -76,6 +89,11 @@ emulator_dict['mnu']['HZ'] = 'HZ_mnu_v1'
76
89
  emulator_dict['mnu']['S8Z'] = 'S8Z_mnu_v1'
77
90
  emulator_dict['mnu']['default'] = {}
78
91
  emulator_dict['mnu']['default']['tau_reio'] = 0.054
92
+ emulator_dict['mnu']['default']['H0'] = 67.66
93
+ emulator_dict['mnu']['default']['ln10^{10}A_s'] = 3.047
94
+ emulator_dict['mnu']['default']['omega_b'] = 0.02242
95
+ emulator_dict['mnu']['default']['omega_cdm'] = 0.11933
96
+ emulator_dict['mnu']['default']['n_s'] = 0.9665
79
97
  emulator_dict['mnu']['default']['N_ur'] = 2.0328
80
98
  emulator_dict['mnu']['default']['N_ncdm'] = 1
81
99
  emulator_dict['mnu']['default']['m_ncdm'] = 0.06
@@ -92,7 +110,12 @@ emulator_dict['neff']['HZ'] = 'HZ_neff_v1'
92
110
  emulator_dict['neff']['S8Z'] = 'S8Z_neff_v1'
93
111
  emulator_dict['neff']['default'] = {}
94
112
  emulator_dict['neff']['default']['tau_reio'] = 0.054
95
- emulator_dict['neff']['default']['N_ur'] = 2.0328
113
+ emulator_dict['neff']['default']['H0'] = 67.66
114
+ emulator_dict['neff']['default']['ln10^{10}A_s'] = 3.047
115
+ emulator_dict['neff']['default']['omega_b'] = 0.02242
116
+ emulator_dict['neff']['default']['omega_cdm'] = 0.11933
117
+ emulator_dict['neff']['default']['n_s'] = 0.9665
118
+ emulator_dict['neff']['default']['N_ur'] = 2.0328 # this is the default value in class v2 to get Neff = 3.046
96
119
  emulator_dict['neff']['default']['N_ncdm'] = 1
97
120
  emulator_dict['neff']['default']['m_ncdm'] = 0.06
98
121
 
@@ -109,7 +132,12 @@ emulator_dict['wcdm']['HZ'] = 'HZ_w_v1'
109
132
  emulator_dict['wcdm']['S8Z'] = 'S8Z_w_v1'
110
133
  emulator_dict['wcdm']['default'] = {}
111
134
  emulator_dict['wcdm']['default']['tau_reio'] = 0.054
112
- emulator_dict['wcdm']['default']['N_ur'] = 2.0328
135
+ emulator_dict['wcdm']['default']['H0'] = 67.66
136
+ emulator_dict['wcdm']['default']['ln10^{10}A_s'] = 3.047
137
+ emulator_dict['wcdm']['default']['omega_b'] = 0.02242
138
+ emulator_dict['wcdm']['default']['omega_cdm'] = 0.11933
139
+ emulator_dict['wcdm']['default']['n_s'] = 0.9665
140
+ emulator_dict['wcdm']['default']['N_ur'] = 2.0328 # this is the default value in class v2 to get Neff = 3.046
113
141
  emulator_dict['wcdm']['default']['N_ncdm'] = 1
114
142
  emulator_dict['wcdm']['default']['m_ncdm'] = 0.06
115
143
 
@@ -126,10 +154,15 @@ emulator_dict['ede']['S8Z'] = 'S8Z_v1'
126
154
  emulator_dict['ede']['default'] = {}
127
155
  emulator_dict['ede']['default']['fEDE'] = 0.001
128
156
  emulator_dict['ede']['default']['tau_reio'] = 0.054
157
+ emulator_dict['ede']['default']['H0'] = 67.66
158
+ emulator_dict['ede']['default']['ln10^{10}A_s'] = 3.047
159
+ emulator_dict['ede']['default']['omega_b'] = 0.02242
160
+ emulator_dict['ede']['default']['omega_cdm'] = 0.11933
161
+ emulator_dict['ede']['default']['n_s'] = 0.9665
129
162
  emulator_dict['ede']['default']['log10z_c'] = 3.562 # e.g. from https://github.com/mwt5345/class_ede/blob/master/class/notebooks-ede/2-CMB-Comparison.ipynb
130
163
  emulator_dict['ede']['default']['thetai_scf'] = 2.83 # e.g. from https://github.com/mwt5345/class_ede/blob/master/class/notebooks-ede/2-CMB-Comparison.ipynb
131
164
  emulator_dict['ede']['default']['r'] = 0.
132
- emulator_dict['ede']['default']['N_ur'] = 0.00641
165
+ emulator_dict['ede']['default']['N_ur'] = 0.00641 # this is the default value in class v2 to get Neff = 3.046
133
166
  emulator_dict['ede']['default']['N_ncdm'] = 3
134
167
  emulator_dict['ede']['default']['m_ncdm'] = 0.02
135
168
 
@@ -146,7 +179,12 @@ emulator_dict['mnu-3states']['HZ'] = 'HZ_v1'
146
179
  emulator_dict['mnu-3states']['S8Z'] = 'S8Z_v1'
147
180
  emulator_dict['mnu-3states']['default'] = {}
148
181
  emulator_dict['mnu-3states']['default']['tau_reio'] = 0.054
149
- emulator_dict['mnu-3states']['default']['N_ur'] = 0.00641
182
+ emulator_dict['mnu-3states']['default']['H0'] = 67.66
183
+ emulator_dict['mnu-3states']['default']['ln10^{10}A_s'] = 3.047
184
+ emulator_dict['mnu-3states']['default']['omega_b'] = 0.02242
185
+ emulator_dict['mnu-3states']['default']['omega_cdm'] = 0.11933
186
+ emulator_dict['mnu-3states']['default']['n_s'] = 0.9665
187
+ emulator_dict['mnu-3states']['default']['N_ur'] = 0.00641 # this is the default value in class v2 to get Neff = 3.046
150
188
  emulator_dict['mnu-3states']['default']['N_ncdm'] = 3
151
189
  emulator_dict['mnu-3states']['default']['m_ncdm'] = 0.02
152
190
 
@@ -168,10 +206,11 @@ emulator_dict['ede-v2']['default']['H0'] = 67.66
168
206
  emulator_dict['ede-v2']['default']['ln10^{10}A_s'] = 3.047
169
207
  emulator_dict['ede-v2']['default']['omega_b'] = 0.02242
170
208
  emulator_dict['ede-v2']['default']['omega_cdm'] = 0.11933
209
+ emulator_dict['ede-v2']['default']['n_s'] = 0.9665
171
210
  emulator_dict['ede-v2']['default']['log10z_c'] = 3.562 # e.g. from https://github.com/mwt5345/class_ede/blob/master/class/notebooks-ede/2-CMB-Comparison.ipynb
172
211
  emulator_dict['ede-v2']['default']['thetai_scf'] = 2.83 # e.g. from https://github.com/mwt5345/class_ede/blob/master/class/notebooks-ede/2-CMB-Comparison.ipynb
173
212
  emulator_dict['ede-v2']['default']['r'] = 0.
174
- emulator_dict['ede-v2']['default']['N_ur'] = 0.00441
213
+ emulator_dict['ede-v2']['default']['N_ur'] = 0.00441 # this is the default value in class v3 to get Neff = 3.044
175
214
  emulator_dict['ede-v2']['default']['N_ncdm'] = 3
176
215
  emulator_dict['ede-v2']['default']['m_ncdm'] = 0.02
177
216
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: classy_szfast
3
- Version: 0.0.22
3
+ Version: 0.0.24
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
@@ -1,8 +1,8 @@
1
1
  classy_szfast/__init__.py,sha256=E2thrL0Z9oXFfdzwcsu-xbOytudLFTlRlPqVFGlPPPg,279
2
2
  classy_szfast/classy_sz.py,sha256=QmbwrSXInQLMvCDqsr7KPmtaU0KOiOt1Rb-cTKuulZw,22240
3
- classy_szfast/classy_szfast.py,sha256=A06tLt_Slxd5TvSQLHaqmX2-Z0aI6p3nWo6jEQ2oWeM,33748
3
+ classy_szfast/classy_szfast.py,sha256=___sH2Xx-8AdK2bv-HsFwvZodjnlx5IX02If88Tpj5A,33800
4
4
  classy_szfast/config.py,sha256=cd7Z62-qnX_4FJWfUNqcyJVh-AdBiXrF8DcQGpyAUZM,274
5
- classy_szfast/cosmopower.py,sha256=2qBp4LRuYIPyPc2E1Xi6A9ImZrDSIEeYYAGJAE2UwTM,9848
5
+ classy_szfast/cosmopower.py,sha256=qM6b3myW84_o_sOrdtKLui3DhOwxMnJA9cnmXDBE0Ps,11972
6
6
  classy_szfast/cosmosis_classy_szfast_interface.py,sha256=zAnxvFtn73a5yS7jgs59zpWFEYKCIQyraYPs5hQ4Le8,11483
7
7
  classy_szfast/pks_and_sigmas.py,sha256=drtuujE1HhlrYY1hY92DyY5lXlYS1uE15MSuVI4uo6k,6625
8
8
  classy_szfast/restore_nn.py,sha256=DqA9thhTRiGBDVb9zjhqcbF2W4V0AU0vrjJFhnLboU4,21075
@@ -12,7 +12,7 @@ classy_szfast/custom_bias/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
12
12
  classy_szfast/custom_bias/custom_bias.py,sha256=aR2t5RTIwv7P0m2bsEU0Eq6BTkj4pG10AebH6QpG4qM,486
13
13
  classy_szfast/custom_profiles/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  classy_szfast/custom_profiles/custom_profiles.py,sha256=4LZwb2XoqwCyWNmW2s24Z7AJdmgVdaRG7yYaBYe-d9Q,1188
15
- classy_szfast-0.0.22.dist-info/METADATA,sha256=jFtHxyZufhNhXnnwWmJ2pWSpCS3q7v3IQzb13JE9rds,512
16
- classy_szfast-0.0.22.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
17
- classy_szfast-0.0.22.dist-info/top_level.txt,sha256=hRgqpilUck4lx2KkaWI2y9aCDKqF6pFfGHfNaoPFxv0,14
18
- classy_szfast-0.0.22.dist-info/RECORD,,
15
+ classy_szfast-0.0.24.dist-info/METADATA,sha256=I8_DtLaWDTMH9my7frjNAGWpPsmQpIX0qxtkk60v-zI,512
16
+ classy_szfast-0.0.24.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
17
+ classy_szfast-0.0.24.dist-info/top_level.txt,sha256=hRgqpilUck4lx2KkaWI2y9aCDKqF6pFfGHfNaoPFxv0,14
18
+ classy_szfast-0.0.24.dist-info/RECORD,,