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.
Files changed (75) hide show
  1. binny/__init__.py +10 -0
  2. binny/api/__init__.py +19 -0
  3. binny/api/nz_tomography.py +1314 -0
  4. binny/axes/__init__.py +0 -0
  5. binny/axes/bin_edges.py +265 -0
  6. binny/axes/grids.py +89 -0
  7. binny/axes/mixed_edges.py +332 -0
  8. binny/correlations/__init__.py +0 -0
  9. binny/correlations/bin_combo_filter.py +788 -0
  10. binny/correlations/filters.py +465 -0
  11. binny/correlations/metrics.py +284 -0
  12. binny/correlations/scores.py +171 -0
  13. binny/correlations/topology.py +268 -0
  14. binny/cosmology/__init__.py +0 -0
  15. binny/cosmology/ccl_wrappers.py +116 -0
  16. binny/nz/__init__.py +3 -0
  17. binny/nz/calibration.py +536 -0
  18. binny/nz/luminosity_function_distribution.py +273 -0
  19. binny/nz/models.py +502 -0
  20. binny/nz/psf_selection.py +359 -0
  21. binny/nz/registry.py +111 -0
  22. binny/nz_tomo/__init__.py +0 -0
  23. binny/nz_tomo/_tomography_bins.py +163 -0
  24. binny/nz_tomo/between_sample_metrics.py +1080 -0
  25. binny/nz_tomo/bin_similarity.py +405 -0
  26. binny/nz_tomo/bin_stats.py +733 -0
  27. binny/nz_tomo/binning_core.py +314 -0
  28. binny/nz_tomo/nz_tomo_utils.py +188 -0
  29. binny/nz_tomo/photoz.py +484 -0
  30. binny/nz_tomo/predefined.py +400 -0
  31. binny/nz_tomo/sample_composition.py +192 -0
  32. binny/nz_tomo/specz.py +637 -0
  33. binny/surveys/__init__.py +1 -0
  34. binny/surveys/config_utils.py +923 -0
  35. binny/surveys/configs/__init__.py +0 -0
  36. binny/surveys/configs/des_survey_specs.yaml +59 -0
  37. binny/surveys/configs/desi_survey_specs.yaml +200 -0
  38. binny/surveys/configs/euclid_survey_specs.yaml +96 -0
  39. binny/surveys/configs/example_full_photoz.yaml +58 -0
  40. binny/surveys/configs/example_full_specz.yaml +58 -0
  41. binny/surveys/configs/example_minimal_photoz.yaml +26 -0
  42. binny/surveys/configs/example_minimal_specz.yaml +28 -0
  43. binny/surveys/configs/example_tabulated.yaml +42 -0
  44. binny/surveys/configs/lsst_survey_specs.yaml +237 -0
  45. binny/surveys/configs/mock_predefined_config.yaml +21 -0
  46. binny/surveys/configs/roman_survey_specs.yaml +169 -0
  47. binny/surveys/data/__init__.py +0 -0
  48. binny/surveys/data/desi_bgs_sgc_nz.txt +52 -0
  49. binny/surveys/data/desi_elg_nz.txt +20 -0
  50. binny/surveys/data/desi_lrg_nz.txt +31 -0
  51. binny/surveys/data/desi_lrg_sgc_nz.txt +73 -0
  52. binny/surveys/data/example_tabulated_nz.txt +102 -0
  53. binny/surveys/data/lsst_dp2_nz_degraded_r24p5_masked.txt +124 -0
  54. binny/surveys/data/mock_predefined_bins.txt +302 -0
  55. binny/surveys/data/roman_n_eff20.nz +300 -0
  56. binny/surveys/data/roman_n_eff30.nz +300 -0
  57. binny/surveys/data/roman_n_eff40.nz +300 -0
  58. binny/surveys/data/roman_n_eff50.nz +300 -0
  59. binny/surveys/scripts/fit_roman_smail.py +580 -0
  60. binny/surveys/sky.py +420 -0
  61. binny/surveys/survey_presets.py +67 -0
  62. binny/utils/__init__.py +0 -0
  63. binny/utils/broadcasting.py +60 -0
  64. binny/utils/io.py +258 -0
  65. binny/utils/metadata.py +372 -0
  66. binny/utils/normalization.py +584 -0
  67. binny/utils/pairwise_metrics.py +565 -0
  68. binny/utils/relations.py +29 -0
  69. binny/utils/types.py +59 -0
  70. binny/utils/validators.py +511 -0
  71. pybinny-0.5.1.dist-info/METADATA +118 -0
  72. pybinny-0.5.1.dist-info/RECORD +75 -0
  73. pybinny-0.5.1.dist-info/WHEEL +5 -0
  74. pybinny-0.5.1.dist-info/licenses/LICENSE +21 -0
  75. pybinny-0.5.1.dist-info/top_level.txt +1 -0
binny/__init__.py ADDED
@@ -0,0 +1,10 @@
1
+ """Public Binny API."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from binny import api as _api
6
+
7
+ # Re-export public API symbols explicitly
8
+ __all__ = list(_api.__all__)
9
+
10
+ globals().update({name: getattr(_api, name) for name in __all__})
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__))