classy-szfast 0.0.25.post19__tar.gz → 0.0.25.post20__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.post19 → classy_szfast-0.0.25.post20}/PKG-INFO +1 -1
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast/classy_sz.py +11 -1
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast/classy_szfast.py +3 -1
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast/cosmopower_jax.py +2 -0
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast/utils.py +1 -0
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast.egg-info/PKG-INFO +1 -1
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/pyproject.toml +1 -1
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/README.md +0 -0
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast/__init__.py +0 -0
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast/config.py +0 -0
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast/cosmopower.py +0 -0
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast/cosmosis_classy_szfast_interface.py +0 -0
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast/custom_bias/__init__.py +0 -0
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast/custom_bias/custom_bias.py +0 -0
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast/custom_profiles/__init__.py +0 -0
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast/custom_profiles/custom_profiles.py +0 -0
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast/emulators_meta_data.py +0 -0
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast/pks_and_sigmas.py +0 -0
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast/restore_nn.py +0 -0
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast/suppress_warnings.py +0 -0
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast.egg-info/SOURCES.txt +0 -0
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast.egg-info/dependency_links.txt +0 -0
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast.egg-info/requires.txt +0 -0
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast.egg-info/top_level.txt +0 -0
- {classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/setup.cfg +0 -0
@@ -7,6 +7,9 @@ import os
|
|
7
7
|
import numpy as np
|
8
8
|
import time
|
9
9
|
|
10
|
+
import warnings
|
11
|
+
|
12
|
+
|
10
13
|
class classy_sz(classy):
|
11
14
|
|
12
15
|
use_class_sz_fast_mode = 1 # this is passed in the yaml file
|
@@ -22,7 +25,14 @@ class classy_sz(classy):
|
|
22
25
|
if not self.classy_module:
|
23
26
|
raise NotInstalledError(
|
24
27
|
self.log, "Could not find CLASS_SZ. Check error message above.")
|
25
|
-
|
28
|
+
|
29
|
+
# Ignore the specific UserWarning from mcfit about using backend='jax'
|
30
|
+
warnings.filterwarnings(
|
31
|
+
"ignore",
|
32
|
+
message="use backend='jax' if desired",
|
33
|
+
category=UserWarning
|
34
|
+
)
|
35
|
+
|
26
36
|
from classy_sz import Class, CosmoSevereError, CosmoComputationError
|
27
37
|
|
28
38
|
# import classy_sz
|
@@ -12,6 +12,8 @@ from multiprocessing import Process
|
|
12
12
|
from mcfit import TophatVar
|
13
13
|
from scipy.interpolate import CubicSpline
|
14
14
|
import pickle
|
15
|
+
import jax
|
16
|
+
jax.config.update("jax_enable_x64", False)
|
15
17
|
import jax.numpy as jnp
|
16
18
|
import jax.scipy as jscipy
|
17
19
|
|
@@ -173,7 +175,7 @@ class Class_szfast(object):
|
|
173
175
|
self.cp_pkl_fftlog_alphas_real_nn = cp_pkl_fftlog_alphas_real_nn
|
174
176
|
self.cp_pkl_fftlog_alphas_imag_nn = cp_pkl_fftlog_alphas_imag_nn
|
175
177
|
|
176
|
-
self.cosmo_model = '
|
178
|
+
self.cosmo_model = 'lcdm'
|
177
179
|
|
178
180
|
self.use_Amod = 0
|
179
181
|
self.Amod = 0
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast/custom_bias/__init__.py
RENAMED
File without changes
|
{classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast/custom_bias/custom_bias.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast/emulators_meta_data.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast/suppress_warnings.py
RENAMED
File without changes
|
{classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast.egg-info/requires.txt
RENAMED
File without changes
|
{classy_szfast-0.0.25.post19 → classy_szfast-0.0.25.post20}/classy_szfast.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|