PyCosmo 2.2.2__tar.gz → 2.3.1__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.
Files changed (95) hide show
  1. {pycosmo-2.2.2/src/PyCosmo.egg-info → pycosmo-2.3.1}/PKG-INFO +4 -5
  2. {pycosmo-2.2.2 → pycosmo-2.3.1}/pyproject.toml +25 -26
  3. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/Cosmo.py +3 -4
  4. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/NonLinearPerturbationHaloFit.py +1 -1
  5. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/halo_integral.c +18829 -19587
  6. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/halo_integral_1h.c +14540 -15511
  7. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/halo_integral_2h.c +16768 -17741
  8. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/halo_integral_HI_1h.c +17122 -18141
  9. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/halo_integral_HI_2h.c +14265 -15286
  10. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/rho_HI_integral.c +15083 -16052
  11. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/rho_m_integral.c +16253 -17220
  12. {pycosmo-2.2.2 → pycosmo-2.3.1/src/PyCosmo.egg-info}/PKG-INFO +4 -5
  13. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo.egg-info/requires.txt +1 -1
  14. {pycosmo-2.2.2 → pycosmo-2.3.1}/AUTHORS.rst +0 -0
  15. {pycosmo-2.2.2 → pycosmo-2.3.1}/LICENSE +0 -0
  16. {pycosmo-2.2.2 → pycosmo-2.3.1}/MANIFEST.in +0 -0
  17. {pycosmo-2.2.2 → pycosmo-2.3.1}/README.md +0 -0
  18. {pycosmo-2.2.2 → pycosmo-2.3.1}/setup.cfg +0 -0
  19. {pycosmo-2.2.2 → pycosmo-2.3.1}/setup.py +0 -0
  20. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/Background.py +0 -0
  21. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/BoltzmannSolver/Fields.py +0 -0
  22. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/BoltzmannSolver/LinearPerturbationBoltzmann.py +0 -0
  23. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/BoltzmannSolver/LsodaSolver.py +0 -0
  24. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/BoltzmannSolver/ScipySolver.py +0 -0
  25. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/BoltzmannSolver/__init__.py +0 -0
  26. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/CosmologyCore.py +0 -0
  27. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/CosmologyCore_massivenu.py +0 -0
  28. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/CosmologyCore_massivenu_rsa.py +0 -0
  29. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/CosmologyCore_massivenu_wcdm.py +0 -0
  30. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/CosmologyCore_massivenu_wcdm_rsa.py +0 -0
  31. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/CosmologyCore_rsa.py +0 -0
  32. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/CosmologyCore_wcdm.py +0 -0
  33. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/CosmologyCore_wcdm_rsa.py +0 -0
  34. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/LinearPerturbationApprox.py +0 -0
  35. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/LinearPerturbationBase.py +0 -0
  36. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/NonLinearPerturbationMead.py +0 -0
  37. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/NonLinearPerturbation_HI.py +0 -0
  38. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/NonLinearPerturbation_HaloModel.py +0 -0
  39. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/Obs.py +0 -0
  40. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/PerturbationBase.py +0 -0
  41. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/PerturbationTable.py +0 -0
  42. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/Projection.py +0 -0
  43. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/TheoryPredTables.py +0 -0
  44. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/_Cosmics.py +0 -0
  45. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/_Recombination.py +0 -0
  46. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/_RecombinationClass.py +0 -0
  47. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/_RecombinationCosmics.py +0 -0
  48. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/_Util.py +0 -0
  49. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/__init__.py +0 -0
  50. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/_scipy_utils.py +0 -0
  51. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/build.py +0 -0
  52. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/config/__init__.py +0 -0
  53. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/config/default_lcdm.ini +0 -0
  54. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/config/default_lcdm_rsa.ini +0 -0
  55. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/config/default_mnulcdm.ini +0 -0
  56. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/config/default_mnulcdm_rsa.ini +0 -0
  57. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/config/default_mnuwcdm.ini +0 -0
  58. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/config/default_mnuwcdm_rsa.ini +0 -0
  59. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/config/default_wcdm.ini +0 -0
  60. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/config/default_wcdm_rsa.ini +0 -0
  61. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/config/load_parameters_ini.py +0 -0
  62. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/core_file_handling.py +0 -0
  63. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/__init__.py +0 -0
  64. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/const.c +0 -0
  65. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/constf.c +0 -0
  66. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/halo_integral.pyx +0 -0
  67. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/halo_integral_1h.pyx +0 -0
  68. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/halo_integral_2h.pyx +0 -0
  69. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/halo_integral_HI_1h.pyx +0 -0
  70. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/halo_integral_HI_2h.pyx +0 -0
  71. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/logf.c +0 -0
  72. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/main.c +0 -0
  73. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/mconf.h +0 -0
  74. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/mtherr.c +0 -0
  75. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/polevl.c +0 -0
  76. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/polevlf.c +0 -0
  77. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/protos.h +0 -0
  78. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/rho_HI_integral.pyx +0 -0
  79. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/rho_m_integral.pyx +0 -0
  80. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/sici.c +0 -0
  81. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/sici.h +0 -0
  82. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/sici32.c +0 -0
  83. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/sicif.c +0 -0
  84. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/cython/sinf.c +0 -0
  85. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/disable_multithreading.py +0 -0
  86. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/ini_handling.py +0 -0
  87. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/model_config.py +0 -0
  88. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/optimize_nq.py +0 -0
  89. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/patches.py +0 -0
  90. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo/predefined_k_grids.py +0 -0
  91. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo.egg-info/SOURCES.txt +0 -0
  92. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo.egg-info/dependency_links.txt +0 -0
  93. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo.egg-info/entry_points.txt +0 -0
  94. {pycosmo-2.2.2 → pycosmo-2.3.1}/src/PyCosmo.egg-info/not-zip-safe +0 -0
  95. {pycosmo-2.2.2 → pycosmo-2.3.1}/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.2.2
3
+ Version: 2.3.1
4
4
  Summary: A multi-purpose cosmology calculation tool
5
5
  Author-email: Uwe Schmitt et al <uwe.schmitt@id.ethz.ch>
6
- License: GPLv3
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.3.1
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.2.2"
9
- license = {text = "GPLv3"}
8
+ version = "2.3.1"
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.3.1",
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 < 7",
63
- "sphinx-pynpoint-theme",
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
- [tool.ruff.format]
88
- quote-style = "double"
89
- line-ending = "lf"
90
- docstring-code-format = false
91
-
92
- [tool.ruff.lint]
93
- extend-select = [
94
- "RUF100", # unnecessary `noqa` directives
95
- ]
96
- ignore = [
97
- "E501",
98
- "E731", # lambda assignment
99
- "E741", # ambiguous variable name
100
- ]
101
-
102
- [tool.ruff.lint.per-file-ignores]
103
- '__init__.py' = [
104
- "F401", # imported but unused
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]
@@ -109,8 +109,7 @@ class Cosmo(object):
109
109
  self._pool = None
110
110
  self._last_merged = None
111
111
 
112
- key_0 = "_".join(map(str, sympy2c_version))
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
- key_1 += hashlib.md5(
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(key_0, key_1)
130
+ self._cache_file_name = "{}__{}.pkl".format(sympy2c_version, equations_file_key)
132
131
  self._load_wrapper()
133
132
  self.load_params()
134
133
 
@@ -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]: