PyCosmoMMF 1.0.1__tar.gz → 1.0.3__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.
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/PKG-INFO +1 -1
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/src/pycosmommf/_version.py +16 -3
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/src/pycosmommf/signatures.py +2 -2
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/src/pycosmommf/tagging.py +8 -8
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/.copier-answers.yml +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/.git_archival.txt +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/.gitattributes +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/.github/CONTRIBUTING.md +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/.github/dependabot.yml +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/.github/release.yml +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/.github/workflows/cd.yml +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/.github/workflows/ci.yml +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/.gitignore +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/.pre-commit-config.yaml +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/.readthedocs.yaml +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/LICENSE +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/README.md +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/CosmoMMF_Dark.png +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/CosmoMMF_light.png +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/basic.css +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/check-solid.svg +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/clipboard.min.js +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/copy-button.svg +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/copybutton.css +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/copybutton.js +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/copybutton_funcs.js +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/debug.css +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/doctools.js +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/documentation_options.js +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/file.png +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/language_data.js +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/minus.png +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/plus.png +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/pygments.css +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/scripts/furo-extensions.js +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/scripts/furo.js +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/scripts/furo.js.LICENSE.txt +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/scripts/furo.js.map +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/searchtools.js +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/skeleton.css +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/sphinx_highlight.js +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/styles/furo-extensions.css +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/styles/furo-extensions.css.map +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/styles/furo.css +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/_static/styles/furo.css.map +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/api/pycosmommf.rst +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/api_tab.md +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/basic_usage.md +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/conf.py +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/images/CosmoMMF_Dark.png +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/images/CosmoMMF_light.png +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/images/final_NEXUSPLUS_Signatures_hydro.png +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/images/final_NEXUSPLUS_Signatures_hydro_dark.png +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/images/final_tagging_figure.png +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/images/final_tagging_figure_dark.png +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/docs/index.md +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/noxfile.py +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/pyproject.toml +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/src/pycosmommf/__init__.py +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/src/pycosmommf/_version.pyi +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/src/pycosmommf/filter.py +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/src/pycosmommf/hessian.py +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/src/pycosmommf/py.typed +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/src/pycosmommf/utils.py +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/tests/__init__.py +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/tests/test_integration.py +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/tests/test_package.py +0 -0
- {pycosmommf-1.0.1 → pycosmommf-1.0.3}/tests/test_unit.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pycosmommf
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.3
|
|
4
4
|
Summary: A package for identifying structures in the cosmic web.
|
|
5
5
|
Project-URL: Homepage, https://github.com/James11222/pycosmommf
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/James11222/pycosmommf/issues
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
# file generated by setuptools-scm
|
|
2
2
|
# don't change, don't track in version control
|
|
3
3
|
|
|
4
|
-
__all__ = [
|
|
4
|
+
__all__ = [
|
|
5
|
+
"__version__",
|
|
6
|
+
"__version_tuple__",
|
|
7
|
+
"version",
|
|
8
|
+
"version_tuple",
|
|
9
|
+
"__commit_id__",
|
|
10
|
+
"commit_id",
|
|
11
|
+
]
|
|
5
12
|
|
|
6
13
|
TYPE_CHECKING = False
|
|
7
14
|
if TYPE_CHECKING:
|
|
@@ -9,13 +16,19 @@ if TYPE_CHECKING:
|
|
|
9
16
|
from typing import Union
|
|
10
17
|
|
|
11
18
|
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
19
|
+
COMMIT_ID = Union[str, None]
|
|
12
20
|
else:
|
|
13
21
|
VERSION_TUPLE = object
|
|
22
|
+
COMMIT_ID = object
|
|
14
23
|
|
|
15
24
|
version: str
|
|
16
25
|
__version__: str
|
|
17
26
|
__version_tuple__: VERSION_TUPLE
|
|
18
27
|
version_tuple: VERSION_TUPLE
|
|
28
|
+
commit_id: COMMIT_ID
|
|
29
|
+
__commit_id__: COMMIT_ID
|
|
19
30
|
|
|
20
|
-
__version__ = version = '1.0.
|
|
21
|
-
__version_tuple__ = version_tuple = (1, 0,
|
|
31
|
+
__version__ = version = '1.0.3'
|
|
32
|
+
__version_tuple__ = version_tuple = (1, 0, 3)
|
|
33
|
+
|
|
34
|
+
__commit_id__ = commit_id = None
|
|
@@ -78,7 +78,7 @@ def signatures_from_hessian(hessian): # pragma: no cover
|
|
|
78
78
|
return sigs
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
def maximum_signature(Rs, density_cube, algorithm="NEXUSPLUS", eps=1e-
|
|
81
|
+
def maximum_signature(Rs, density_cube, algorithm="NEXUSPLUS", eps=1e-16):
|
|
82
82
|
"""
|
|
83
83
|
Compute the maximum signatures across all scales Rs.
|
|
84
84
|
|
|
@@ -90,7 +90,7 @@ def maximum_signature(Rs, density_cube, algorithm="NEXUSPLUS", eps=1e-8):
|
|
|
90
90
|
algorithm (:obj:`str`, optional):
|
|
91
91
|
The algorithm to use for smoothing. Can be either "NEXUS" or "NEXUSPLUS". Defaults to "NEXUSPLUS".
|
|
92
92
|
eps (:obj:`float`, optional):
|
|
93
|
-
Small value to avoid division by zero. Defaults to ``1e-
|
|
93
|
+
Small value to avoid division by zero. Defaults to ``1e-16``.
|
|
94
94
|
|
|
95
95
|
Returns:
|
|
96
96
|
(:obj:`4D float np.ndarray`):
|
|
@@ -167,14 +167,14 @@ def calc_structure_bools(
|
|
|
167
167
|
msg = "make sure that you are not inputing the overdensity field δ = ρ/<ρ> - 1, but rather δ + 1 = ρ/<ρ>."
|
|
168
168
|
raise ValueError(msg)
|
|
169
169
|
|
|
170
|
-
# Check if the input density_cube is actually δ + 1 = ρ/<ρ> or just ρ
|
|
171
|
-
if np.mean(density_cube)
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
170
|
+
# # Check if the input density_cube is actually δ + 1 = ρ/<ρ> or just ρ
|
|
171
|
+
# if np.mean(density_cube) != 1.0:
|
|
172
|
+
# # If the mean is greater than 1, we assume it is simply ρ, but we want to transform to δ + 1 = ρ/<ρ>
|
|
173
|
+
# if verbose_flag: # pragma: no cover
|
|
174
|
+
# print(
|
|
175
|
+
# "Input density_cube is in density units, transforming to δ + 1 = ρ/<ρ>."
|
|
176
|
+
# )
|
|
177
|
+
# density_cube /= np.mean(density_cube) # normalize to mean = 1
|
|
178
178
|
|
|
179
179
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
180
180
|
# Step 1. Create Cluster bool Filter
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|