pybinny 0.5.1__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.
- binny/__init__.py +10 -0
- binny/api/__init__.py +19 -0
- binny/api/nz_tomography.py +1314 -0
- binny/axes/__init__.py +0 -0
- binny/axes/bin_edges.py +265 -0
- binny/axes/grids.py +89 -0
- binny/axes/mixed_edges.py +332 -0
- binny/correlations/__init__.py +0 -0
- binny/correlations/bin_combo_filter.py +788 -0
- binny/correlations/filters.py +465 -0
- binny/correlations/metrics.py +284 -0
- binny/correlations/scores.py +171 -0
- binny/correlations/topology.py +268 -0
- binny/cosmology/__init__.py +0 -0
- binny/cosmology/ccl_wrappers.py +116 -0
- binny/nz/__init__.py +3 -0
- binny/nz/calibration.py +536 -0
- binny/nz/luminosity_function_distribution.py +273 -0
- binny/nz/models.py +502 -0
- binny/nz/psf_selection.py +359 -0
- binny/nz/registry.py +111 -0
- binny/nz_tomo/__init__.py +0 -0
- binny/nz_tomo/_tomography_bins.py +163 -0
- binny/nz_tomo/between_sample_metrics.py +1080 -0
- binny/nz_tomo/bin_similarity.py +405 -0
- binny/nz_tomo/bin_stats.py +733 -0
- binny/nz_tomo/binning_core.py +314 -0
- binny/nz_tomo/nz_tomo_utils.py +188 -0
- binny/nz_tomo/photoz.py +484 -0
- binny/nz_tomo/predefined.py +400 -0
- binny/nz_tomo/sample_composition.py +192 -0
- binny/nz_tomo/specz.py +637 -0
- binny/surveys/__init__.py +1 -0
- binny/surveys/config_utils.py +923 -0
- binny/surveys/configs/__init__.py +0 -0
- binny/surveys/configs/des_survey_specs.yaml +59 -0
- binny/surveys/configs/desi_survey_specs.yaml +200 -0
- binny/surveys/configs/euclid_survey_specs.yaml +96 -0
- binny/surveys/configs/example_full_photoz.yaml +58 -0
- binny/surveys/configs/example_full_specz.yaml +58 -0
- binny/surveys/configs/example_minimal_photoz.yaml +26 -0
- binny/surveys/configs/example_minimal_specz.yaml +28 -0
- binny/surveys/configs/example_tabulated.yaml +42 -0
- binny/surveys/configs/lsst_survey_specs.yaml +237 -0
- binny/surveys/configs/mock_predefined_config.yaml +21 -0
- binny/surveys/configs/roman_survey_specs.yaml +169 -0
- binny/surveys/data/__init__.py +0 -0
- binny/surveys/data/desi_bgs_sgc_nz.txt +52 -0
- binny/surveys/data/desi_elg_nz.txt +20 -0
- binny/surveys/data/desi_lrg_nz.txt +31 -0
- binny/surveys/data/desi_lrg_sgc_nz.txt +73 -0
- binny/surveys/data/example_tabulated_nz.txt +102 -0
- binny/surveys/data/lsst_dp2_nz_degraded_r24p5_masked.txt +124 -0
- binny/surveys/data/mock_predefined_bins.txt +302 -0
- binny/surveys/data/roman_n_eff20.nz +300 -0
- binny/surveys/data/roman_n_eff30.nz +300 -0
- binny/surveys/data/roman_n_eff40.nz +300 -0
- binny/surveys/data/roman_n_eff50.nz +300 -0
- binny/surveys/scripts/fit_roman_smail.py +580 -0
- binny/surveys/sky.py +420 -0
- binny/surveys/survey_presets.py +67 -0
- binny/utils/__init__.py +0 -0
- binny/utils/broadcasting.py +60 -0
- binny/utils/io.py +258 -0
- binny/utils/metadata.py +372 -0
- binny/utils/normalization.py +584 -0
- binny/utils/pairwise_metrics.py +565 -0
- binny/utils/relations.py +29 -0
- binny/utils/types.py +59 -0
- binny/utils/validators.py +511 -0
- pybinny-0.5.1.dist-info/METADATA +118 -0
- pybinny-0.5.1.dist-info/RECORD +75 -0
- pybinny-0.5.1.dist-info/WHEEL +5 -0
- pybinny-0.5.1.dist-info/licenses/LICENSE +21 -0
- pybinny-0.5.1.dist-info/top_level.txt +1 -0
binny/__init__.py
ADDED
binny/api/__init__.py
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""Initialization of the Binny API package."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from importlib import import_module
|
|
6
|
+
|
|
7
|
+
_API_MODULES = ("binny.api.nz_tomography",)
|
|
8
|
+
|
|
9
|
+
__all__: list[str] = []
|
|
10
|
+
|
|
11
|
+
for mod_name in _API_MODULES:
|
|
12
|
+
mod = import_module(mod_name)
|
|
13
|
+
names = list(getattr(mod, "__all__", []))
|
|
14
|
+
for name in names:
|
|
15
|
+
globals()[name] = getattr(mod, name)
|
|
16
|
+
__all__.extend(names)
|
|
17
|
+
|
|
18
|
+
# remove duplicates and make ordering stable
|
|
19
|
+
__all__ = sorted(set(__all__))
|