PyCosmo 2.2.2__tar.gz → 2.3.0__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.
- {pycosmo-2.2.2/src/PyCosmo.egg-info → pycosmo-2.3.0}/PKG-INFO +4 -5
- {pycosmo-2.2.2 → pycosmo-2.3.0}/pyproject.toml +25 -26
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/NonLinearPerturbationHaloFit.py +1 -1
- pycosmo-2.2.2/src/PyCosmo/Cosmo.py → pycosmo-2.3.0/src/PyCosmo/cosmo.py +3 -4
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/halo_integral.c +19022 -19839
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/halo_integral_1h.c +14481 -15511
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/halo_integral_2h.c +16709 -17741
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/halo_integral_HI_1h.c +17063 -18141
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/halo_integral_HI_2h.c +14206 -15286
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/rho_HI_integral.c +15024 -16052
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/rho_m_integral.c +16194 -17220
- {pycosmo-2.2.2 → pycosmo-2.3.0/src/PyCosmo.egg-info}/PKG-INFO +4 -5
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo.egg-info/SOURCES.txt +4 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo.egg-info/requires.txt +1 -1
- {pycosmo-2.2.2 → pycosmo-2.3.0}/AUTHORS.rst +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/LICENSE +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/MANIFEST.in +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/README.md +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/setup.cfg +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/setup.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/BoltzmannSolver/Fields.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/BoltzmannSolver/LinearPerturbationBoltzmann.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/BoltzmannSolver/LsodaSolver.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/BoltzmannSolver/ScipySolver.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/BoltzmannSolver/__init__.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/CosmologyCore.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/CosmologyCore_massivenu.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/CosmologyCore_massivenu_rsa.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/CosmologyCore_massivenu_wcdm.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/CosmologyCore_massivenu_wcdm_rsa.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/CosmologyCore_rsa.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/CosmologyCore_wcdm.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/CosmologyCore_wcdm_rsa.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/LinearPerturbationApprox.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/LinearPerturbationBase.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/NonLinearPerturbationMead.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/NonLinearPerturbation_HI.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/NonLinearPerturbation_HaloModel.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/PerturbationBase.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/PerturbationTable.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/TheoryPredTables.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/_Cosmics.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/_Recombination.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/_RecombinationClass.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/_RecombinationCosmics.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/_Util.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/__init__.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/_scipy_utils.py +0 -0
- /pycosmo-2.2.2/src/PyCosmo/Background.py → /pycosmo-2.3.0/src/PyCosmo/background.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/build.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/config/__init__.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/config/default_lcdm.ini +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/config/default_lcdm_rsa.ini +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/config/default_mnulcdm.ini +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/config/default_mnulcdm_rsa.ini +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/config/default_mnuwcdm.ini +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/config/default_mnuwcdm_rsa.ini +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/config/default_wcdm.ini +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/config/default_wcdm_rsa.ini +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/config/load_parameters_ini.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/core_file_handling.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/__init__.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/const.c +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/constf.c +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/halo_integral.pyx +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/halo_integral_1h.pyx +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/halo_integral_2h.pyx +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/halo_integral_HI_1h.pyx +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/halo_integral_HI_2h.pyx +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/logf.c +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/main.c +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/mconf.h +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/mtherr.c +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/polevl.c +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/polevlf.c +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/protos.h +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/rho_HI_integral.pyx +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/rho_m_integral.pyx +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/sici.c +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/sici.h +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/sici32.c +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/sicif.c +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/cython/sinf.c +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/disable_multithreading.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/ini_handling.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/model_config.py +0 -0
- /pycosmo-2.2.2/src/PyCosmo/Obs.py → /pycosmo-2.3.0/src/PyCosmo/obs.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/optimize_nq.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/patches.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo/predefined_k_grids.py +0 -0
- /pycosmo-2.2.2/src/PyCosmo/Projection.py → /pycosmo-2.3.0/src/PyCosmo/projection.py +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo.egg-info/dependency_links.txt +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo.egg-info/entry_points.txt +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo.egg-info/not-zip-safe +0 -0
- {pycosmo-2.2.2 → pycosmo-2.3.0}/src/PyCosmo.egg-info/top_level.txt +0 -0
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyCosmo
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.0
|
|
4
4
|
Summary: A multi-purpose cosmology calculation tool
|
|
5
5
|
Author-email: Uwe Schmitt et al <uwe.schmitt@id.ethz.ch>
|
|
6
|
-
License:
|
|
6
|
+
License-Expression: GPL-3.0
|
|
7
7
|
Project-URL: Source, https://cosmo-docs.phys.ethz.ch/PyCosmo
|
|
8
8
|
Classifier: Development Status :: 4 - Beta
|
|
9
9
|
Classifier: Intended Audience :: Developers
|
|
10
10
|
Classifier: Intended Audience :: Science/Research
|
|
11
|
-
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
12
11
|
Classifier: Natural Language :: English
|
|
13
12
|
Classifier: Operating System :: OS Independent
|
|
14
13
|
Classifier: Programming Language :: C
|
|
15
14
|
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.12
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
20
19
|
Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
21
20
|
Requires-Python: >=3.10
|
|
22
21
|
Description-Content-Type: text/markdown; charset=UTF-8
|
|
@@ -27,7 +26,7 @@ Requires-Dist: recfast4py>=0.2.3
|
|
|
27
26
|
Requires-Dist: dill
|
|
28
27
|
Requires-Dist: matplotlib
|
|
29
28
|
Requires-Dist: numba>=0.60
|
|
30
|
-
Requires-Dist: sympy2c>=2.
|
|
29
|
+
Requires-Dist: sympy2c>=2.5.1
|
|
31
30
|
Requires-Dist: numexpr>=2.10
|
|
32
31
|
Requires-Dist: scipy
|
|
33
32
|
Requires-Dist: setuptools>=75.6.0
|
|
@@ -5,23 +5,22 @@ build-backend = "setuptools.build_meta"
|
|
|
5
5
|
|
|
6
6
|
[project]
|
|
7
7
|
name = "PyCosmo"
|
|
8
|
-
version = "2.
|
|
9
|
-
license =
|
|
8
|
+
version = "2.3.0"
|
|
9
|
+
license = "GPL-3.0"
|
|
10
10
|
description = "A multi-purpose cosmology calculation tool"
|
|
11
11
|
authors = [{name = "Uwe Schmitt et al", email = "uwe.schmitt@id.ethz.ch"}]
|
|
12
12
|
classifiers = [
|
|
13
13
|
"Development Status :: 4 - Beta",
|
|
14
14
|
"Intended Audience :: Developers",
|
|
15
15
|
"Intended Audience :: Science/Research",
|
|
16
|
-
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
|
17
16
|
"Natural Language :: English",
|
|
18
17
|
"Operating System :: OS Independent",
|
|
19
18
|
"Programming Language :: C",
|
|
20
19
|
"Programming Language :: Python :: 3",
|
|
20
|
+
"Programming Language :: Python :: 3.13",
|
|
21
21
|
"Programming Language :: Python :: 3.12",
|
|
22
22
|
"Programming Language :: Python :: 3.11",
|
|
23
23
|
"Programming Language :: Python :: 3.10",
|
|
24
|
-
"Programming Language :: Python :: 3.9",
|
|
25
24
|
"Topic :: Scientific/Engineering :: Astronomy",
|
|
26
25
|
]
|
|
27
26
|
|
|
@@ -33,7 +32,7 @@ dependencies = [
|
|
|
33
32
|
"dill",
|
|
34
33
|
"matplotlib",
|
|
35
34
|
"numba>=0.60",
|
|
36
|
-
"sympy2c>=2.
|
|
35
|
+
"sympy2c>=2.5.1",
|
|
37
36
|
"numexpr>=2.10",
|
|
38
37
|
"scipy",
|
|
39
38
|
"setuptools>=75.6.0",
|
|
@@ -59,8 +58,8 @@ dev = [
|
|
|
59
58
|
]
|
|
60
59
|
|
|
61
60
|
docs = [
|
|
62
|
-
"sphinx
|
|
63
|
-
"sphinx-
|
|
61
|
+
"sphinx",
|
|
62
|
+
"sphinx-rtd-theme",
|
|
64
63
|
"myst-parser",
|
|
65
64
|
]
|
|
66
65
|
|
|
@@ -84,25 +83,25 @@ include-package-data = true
|
|
|
84
83
|
line-length = 88
|
|
85
84
|
extend-exclude = ["benchmarks/", "*.ipynb"]
|
|
86
85
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
86
|
+
[tool.ruff.format]
|
|
87
|
+
quote-style = "double"
|
|
88
|
+
line-ending = "lf"
|
|
89
|
+
docstring-code-format = false
|
|
90
|
+
|
|
91
|
+
[tool.ruff.lint]
|
|
92
|
+
extend-select = [
|
|
93
|
+
"RUF100", # unnecessary `noqa` directives
|
|
94
|
+
]
|
|
95
|
+
ignore = [
|
|
96
|
+
"E501",
|
|
97
|
+
"E731", # lambda assignment
|
|
98
|
+
"E741", # ambiguous variable name
|
|
99
|
+
]
|
|
100
|
+
|
|
101
|
+
[tool.ruff.lint.per-file-ignores]
|
|
102
|
+
'__init__.py' = [
|
|
103
|
+
"F401", # imported but unused
|
|
104
|
+
]
|
|
106
105
|
|
|
107
106
|
|
|
108
107
|
[tool.pytest.ini_options]
|
|
@@ -51,7 +51,7 @@ class NonLinearPerturbationHaloFit(NonLinearPerturbationBase):
|
|
|
51
51
|
k_nl = np.zeros(len(aa))
|
|
52
52
|
for i in range(len(aa)):
|
|
53
53
|
# Delta^2=k ** 3*P(k)/(2 pi ** 2)
|
|
54
|
-
del2 = self._lin_pert.powerspec_a_k(aa[i], k)[0] * k**3 / 2.0 / np.pi**2
|
|
54
|
+
del2 = self._lin_pert.powerspec_a_k(aa[i], k)[:, 0] * k**3 / 2.0 / np.pi**2
|
|
55
55
|
# k_nl defined such that Delta^2(k_nl)=1
|
|
56
56
|
k_nl[i] = np.interp(1.0, del2, k)
|
|
57
57
|
if k_nl[i] < 10 ** logk_ran[0] or k_nl[i] > 10 ** logk_ran[1]:
|
|
@@ -109,8 +109,7 @@ class Cosmo(object):
|
|
|
109
109
|
self._pool = None
|
|
110
110
|
self._last_merged = None
|
|
111
111
|
|
|
112
|
-
|
|
113
|
-
key_1 = ""
|
|
112
|
+
equations_file_key = ""
|
|
114
113
|
for i, core_equations_file in enumerate(core_equations_files):
|
|
115
114
|
if not core_equations_file.startswith(
|
|
116
115
|
"."
|
|
@@ -119,7 +118,7 @@ class Cosmo(object):
|
|
|
119
118
|
core_equations_files[i] = core_equations_file
|
|
120
119
|
|
|
121
120
|
with open(core_equations_file, "rb") as fh:
|
|
122
|
-
|
|
121
|
+
equations_file_key += hashlib.md5(
|
|
123
122
|
fh.read() + str(self.model_config).encode()
|
|
124
123
|
).hexdigest()[:6]
|
|
125
124
|
|
|
@@ -128,7 +127,7 @@ class Cosmo(object):
|
|
|
128
127
|
print(self.model_config)
|
|
129
128
|
self.params = Bunch({})
|
|
130
129
|
|
|
131
|
-
self._cache_file_name = "{}__{}.pkl".format(
|
|
130
|
+
self._cache_file_name = "{}__{}.pkl".format(sympy2c_version, equations_file_key)
|
|
132
131
|
self._load_wrapper()
|
|
133
132
|
self.load_params()
|
|
134
133
|
|