ABCMB 0.2.1__tar.gz → 0.2.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.
- {abcmb-0.2.1 → abcmb-0.2.3}/ABCMB.egg-info/PKG-INFO +19 -1
- {abcmb-0.2.1 → abcmb-0.2.3}/ABCMB.egg-info/SOURCES.txt +1 -0
- abcmb-0.2.3/LICENSE +21 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/PKG-INFO +19 -1
- {abcmb-0.2.1 → abcmb-0.2.3}/README.md +16 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/ABCMBTools.py +1 -1
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/background.py +14 -8
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/main.py +3 -3
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/species.py +12 -1
- abcmb-0.2.3/abcmb/version.py +1 -0
- abcmb-0.2.1/abcmb/version.py +0 -1
- {abcmb-0.2.1 → abcmb-0.2.3}/ABCMB.egg-info/dependency_links.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/ABCMB.egg-info/requires.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/ABCMB.egg-info/top_level.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/__init__.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/bessel_tab/l.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/bessel_tab/phi0.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/bessel_tab/phi1.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/bessel_tab/phi2.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/bessel_tab/xphi0.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/bessel_tab/xphi1.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/bessel_tab/xphi2.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/constants.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/hyrex/__init__.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/hyrex/array_with_padding.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/hyrex/helium.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/hyrex/hydrogen.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/hyrex/hyrex.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/hyrex/recomb_functions.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/hyrex/tabs/Alpha_inf.dat +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/hyrex/tabs/R_inf.dat +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/hyrex/tabs/fit_swift.dat +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/hyrex/tabs/two_photon_tables.dat +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/hyrex/tabs/two_photon_tables_hires.dat +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/__init__.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/abundances.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/background.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/const.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/__init__.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/background/QED_P_int.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/background/QED_d2P_intdT2.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/background/QED_dP_intdT.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/background/nue_ann.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/background/nue_scatt.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/background/numu_ann.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/background/numu_scatt.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/__init__.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PArthENoPE.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2018/Be7nLi7p.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2018/He3aBe7g.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2018/He3dap.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2018/He3ntp.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2018/Li7paa.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2018/ddHe3n.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2018/ddtp.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2018/dpHe3g.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2018/npdg.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2018/taLi7g.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2018/tdan.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2018/tpag.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2023/Be7nLi7p.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2023/He3aBe7g.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2023/He3dap.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2023/He3ntp.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2023/Li7paa.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2023/ddHe3n.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2023/ddtp.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2023/dpHe3g.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2023/npdg.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2023/taLi7g.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2023/tdan.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_PRIMAT_2023/tpag.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_YOF/Be7nLi7p.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_YOF/He3aBe7g.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_YOF/He3dap.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_YOF/He3ntp.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_YOF/Li7paa.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_YOF/ddHe3n.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_YOF/ddtp.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_YOF/dpHe3g.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_YOF/npdg.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_YOF/taLi7g.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_YOF/tdan.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/key_YOF/tpag.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/B8dBe7He3.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/B8nBe7d.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/B8nLi6He3.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/B8naap.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/B8tBe7a.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/B8taaHe3.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Be7He3ppaa.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Be7daap.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Be7naa.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Be7pB8g.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Be7tLi6a.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Be7tLi7He3.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Be7taad.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Be7taanp.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/He3He3app.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/He3nag.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/He3tLi6g.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/He3tad.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/He3tanp.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li6He3Be7d.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li6He3aap.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li6dBe7n.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li6dLi7p.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li6nLi7g.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li6nta.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li6pBe7g.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li6pHe3a.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li6tLi7d.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li6tLi8p.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li6taan.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li7He3Li6a.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li7He3aad.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li7He3aanp.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li7dLi8p.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li7daan.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li7nLi8g.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li7paag.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li7taann.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li8He3Li7a.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li8He3aat.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li8dLi7t.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/Li8paan.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/annHe6g.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/anpLi6g.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/daLi6g.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/ddag.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/dntg.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/ppndp.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/nuclear_rates/other_PRIMAT_2023/ttann.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/weak_thermal_corrections/nTOp_thermal_corrections_SBBN.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/data/weak_thermal_corrections/pTOn_thermal_corrections_SBBN.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/nuclear.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/reactions.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/special_funcs.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/thermo.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/linx/weak_rates.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/model_specs.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/perturbations.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/sBBN_2025_CLASS.txt +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/setup.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/abcmb/spectrum.py +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/pyproject.toml +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/setup.cfg +0 -0
- {abcmb-0.2.1 → abcmb-0.2.3}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ABCMB
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: A fast, differentiable, and extensible CMB code
|
|
5
5
|
Home-page: https://github.com/TonyZhou729/ABCMB
|
|
6
6
|
Author: Zilu Zhou, Cara Giovanetti, Hongwan Liu
|
|
@@ -19,6 +19,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.14
|
|
20
20
|
Requires-Python: >=3.8
|
|
21
21
|
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
22
23
|
Requires-Dist: numpy
|
|
23
24
|
Requires-Dist: scipy
|
|
24
25
|
Requires-Dist: matplotlib
|
|
@@ -28,6 +29,7 @@ Requires-Dist: interpax
|
|
|
28
29
|
Requires-Dist: jax==0.8.1
|
|
29
30
|
Requires-Dist: pytest
|
|
30
31
|
Requires-Dist: optimistix==0.0.11
|
|
32
|
+
Dynamic: license-file
|
|
31
33
|
|
|
32
34
|
<h1 align="center">
|
|
33
35
|
ABCMB<!-- omit from toc -->
|
|
@@ -35,6 +37,7 @@ ABCMB<!-- omit from toc -->
|
|
|
35
37
|
<h4 align="center">
|
|
36
38
|
|
|
37
39
|
[](https://opensource.org/licenses/MIT)
|
|
40
|
+
[](https://arxiv.org/abs/2602.15104)
|
|
38
41
|
[](https://github.com/TonyZhou729/ABCMB/actions/workflows/accuracy.yml)
|
|
39
42
|
<!--[](https://arxiv.org/abs/2408.14538) -->
|
|
40
43
|
|
|
@@ -63,5 +66,20 @@ We have included several pedagogical jupyter notebooks to walk you through how t
|
|
|
63
66
|
## Issues
|
|
64
67
|
Please feel free to open an issue if something is amiss in ABCMB!
|
|
65
68
|
|
|
69
|
+
## Citation
|
|
70
|
+
|
|
71
|
+
If you use ABCMB to publish scientific research, we suggest you cite
|
|
72
|
+
```
|
|
73
|
+
@misc{abcmb,
|
|
74
|
+
title={{ABCMB: A Python+JAX Package for the Cosmic Microwave Background Power Spectrum}},
|
|
75
|
+
author={Zilu Zhou and Cara Giovanetti and Hongwan Liu},
|
|
76
|
+
year={2026},
|
|
77
|
+
eprint={2602.15104},
|
|
78
|
+
archivePrefix={arXiv},
|
|
79
|
+
primaryClass={astro-ph.CO},
|
|
80
|
+
url={https://arxiv.org/abs/2602.15104},
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
66
84
|
|
|
67
85
|
|
abcmb-0.2.3/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Zilu Zhou, Cara Giovanetti, Hongwan Liu
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ABCMB
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: A fast, differentiable, and extensible CMB code
|
|
5
5
|
Home-page: https://github.com/TonyZhou729/ABCMB
|
|
6
6
|
Author: Zilu Zhou, Cara Giovanetti, Hongwan Liu
|
|
@@ -19,6 +19,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.14
|
|
20
20
|
Requires-Python: >=3.8
|
|
21
21
|
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
22
23
|
Requires-Dist: numpy
|
|
23
24
|
Requires-Dist: scipy
|
|
24
25
|
Requires-Dist: matplotlib
|
|
@@ -28,6 +29,7 @@ Requires-Dist: interpax
|
|
|
28
29
|
Requires-Dist: jax==0.8.1
|
|
29
30
|
Requires-Dist: pytest
|
|
30
31
|
Requires-Dist: optimistix==0.0.11
|
|
32
|
+
Dynamic: license-file
|
|
31
33
|
|
|
32
34
|
<h1 align="center">
|
|
33
35
|
ABCMB<!-- omit from toc -->
|
|
@@ -35,6 +37,7 @@ ABCMB<!-- omit from toc -->
|
|
|
35
37
|
<h4 align="center">
|
|
36
38
|
|
|
37
39
|
[](https://opensource.org/licenses/MIT)
|
|
40
|
+
[](https://arxiv.org/abs/2602.15104)
|
|
38
41
|
[](https://github.com/TonyZhou729/ABCMB/actions/workflows/accuracy.yml)
|
|
39
42
|
<!--[](https://arxiv.org/abs/2408.14538) -->
|
|
40
43
|
|
|
@@ -63,5 +66,20 @@ We have included several pedagogical jupyter notebooks to walk you through how t
|
|
|
63
66
|
## Issues
|
|
64
67
|
Please feel free to open an issue if something is amiss in ABCMB!
|
|
65
68
|
|
|
69
|
+
## Citation
|
|
70
|
+
|
|
71
|
+
If you use ABCMB to publish scientific research, we suggest you cite
|
|
72
|
+
```
|
|
73
|
+
@misc{abcmb,
|
|
74
|
+
title={{ABCMB: A Python+JAX Package for the Cosmic Microwave Background Power Spectrum}},
|
|
75
|
+
author={Zilu Zhou and Cara Giovanetti and Hongwan Liu},
|
|
76
|
+
year={2026},
|
|
77
|
+
eprint={2602.15104},
|
|
78
|
+
archivePrefix={arXiv},
|
|
79
|
+
primaryClass={astro-ph.CO},
|
|
80
|
+
url={https://arxiv.org/abs/2602.15104},
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
66
84
|
|
|
67
85
|
|
|
@@ -4,6 +4,7 @@ ABCMB<!-- omit from toc -->
|
|
|
4
4
|
<h4 align="center">
|
|
5
5
|
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
|
+
[](https://arxiv.org/abs/2602.15104)
|
|
7
8
|
[](https://github.com/TonyZhou729/ABCMB/actions/workflows/accuracy.yml)
|
|
8
9
|
<!--[](https://arxiv.org/abs/2408.14538) -->
|
|
9
10
|
|
|
@@ -32,5 +33,20 @@ We have included several pedagogical jupyter notebooks to walk you through how t
|
|
|
32
33
|
## Issues
|
|
33
34
|
Please feel free to open an issue if something is amiss in ABCMB!
|
|
34
35
|
|
|
36
|
+
## Citation
|
|
37
|
+
|
|
38
|
+
If you use ABCMB to publish scientific research, we suggest you cite
|
|
39
|
+
```
|
|
40
|
+
@misc{abcmb,
|
|
41
|
+
title={{ABCMB: A Python+JAX Package for the Cosmic Microwave Background Power Spectrum}},
|
|
42
|
+
author={Zilu Zhou and Cara Giovanetti and Hongwan Liu},
|
|
43
|
+
year={2026},
|
|
44
|
+
eprint={2602.15104},
|
|
45
|
+
archivePrefix={arXiv},
|
|
46
|
+
primaryClass={astro-ph.CO},
|
|
47
|
+
url={https://arxiv.org/abs/2602.15104},
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
35
51
|
|
|
36
52
|
|
|
@@ -299,7 +299,7 @@ def fast_interp(x, xp_min, xp_max, fp):
|
|
|
299
299
|
# to make this operation much faster.
|
|
300
300
|
eps = 1.e-6
|
|
301
301
|
n = fp.shape[-1]
|
|
302
|
-
i = (x - xp_min) / (xp_max - xp_min) * n
|
|
302
|
+
i = (x - xp_min) / (xp_max - xp_min) * (n - 1) # fix bug in JAX issue
|
|
303
303
|
i = jnp.clip(i, eps, n - 1.0 - eps) # Avoid index out of range
|
|
304
304
|
i_lower = jnp.floor(i).astype(jnp.int32)
|
|
305
305
|
i_upper = jnp.minimum(i_lower + 1, n - 1)
|
|
@@ -102,8 +102,6 @@ class Background(eqx.Module):
|
|
|
102
102
|
tau_reion : float
|
|
103
103
|
lna_rec : float
|
|
104
104
|
rA_rec : float # Comoving angular diameter distance at recombination.
|
|
105
|
-
rs_d : float # Sound horizon at baryon decoupling
|
|
106
|
-
z_d : float # redshift of baryon decoupling
|
|
107
105
|
|
|
108
106
|
# Transfer related
|
|
109
107
|
lna_transfer_start : float # Time where transfer functions start integrating.
|
|
@@ -749,8 +747,16 @@ class Background(eqx.Module):
|
|
|
749
747
|
float
|
|
750
748
|
Baryon drag ratio (units: dimensionless)
|
|
751
749
|
"""
|
|
752
|
-
|
|
753
|
-
|
|
750
|
+
|
|
751
|
+
rho_b = 0.
|
|
752
|
+
rho_g = 0.
|
|
753
|
+
|
|
754
|
+
for s in self.species_list:
|
|
755
|
+
if s.name == "Photon":
|
|
756
|
+
rho_g += s.rho(lna, params)
|
|
757
|
+
elif s.name == "Baryon":
|
|
758
|
+
rho_b += s.rho(lna, params)
|
|
759
|
+
|
|
754
760
|
return 3. * rho_b / (4 * rho_g)
|
|
755
761
|
|
|
756
762
|
@jax.named_scope("tabulate kappa d")
|
|
@@ -771,7 +777,7 @@ class Background(eqx.Module):
|
|
|
771
777
|
array
|
|
772
778
|
Tabulated baryon optical depth values (units: dimensionless)
|
|
773
779
|
"""
|
|
774
|
-
integrand = lambda lna, y, args: jnp.float64(-1./self.tau_c(lna, params)/self.aH(lna, params)/(self.R_ratio_lna(lna)))
|
|
780
|
+
integrand = lambda lna, y, args: jnp.float64(-1./self.tau_c(lna, params)/self.aH(lna, params)/(self.R_ratio_lna(lna, params)))
|
|
775
781
|
term = ODETerm(integrand)
|
|
776
782
|
stepsize_controller = PIDController(pcoeff=0.4, icoeff=0.3, dcoeff=0, rtol=1.e-3, atol=1.e-6)
|
|
777
783
|
adjoint=ForwardMode()
|
|
@@ -812,7 +818,7 @@ class Background(eqx.Module):
|
|
|
812
818
|
# initial condition assuming cs**2 = 1/3 at early times
|
|
813
819
|
rs0 = 1./jnp.sqrt(3) / (self.aH( self.lna_tau_tab[0], params ))
|
|
814
820
|
|
|
815
|
-
integrand = lambda lna, y, args: 1./jnp.sqrt(3*(1+self.R_ratio_lna(lna))) / (self.aH(lna, params))
|
|
821
|
+
integrand = lambda lna, y, args: 1./jnp.sqrt(3*(1+self.R_ratio_lna(lna, params))) / (self.aH(lna, params))
|
|
816
822
|
term = ODETerm(integrand)
|
|
817
823
|
stepsize_controller = PIDController(pcoeff=0.4, icoeff=0.3, dcoeff=0, rtol=1.e-3, atol=1.e-6)
|
|
818
824
|
adjoint=ForwardMode()
|
|
@@ -850,7 +856,7 @@ class Background(eqx.Module):
|
|
|
850
856
|
float
|
|
851
857
|
Decoupling redshift (units: dimensionless)
|
|
852
858
|
"""
|
|
853
|
-
return self.find_z_at_kappad_equals_one(1/jnp.exp(self.lna_tau_tab) - 1, self._tabulate_kappa_d())
|
|
859
|
+
return self.find_z_at_kappad_equals_one(1/jnp.exp(self.lna_tau_tab) - 1, self._tabulate_kappa_d(params))
|
|
854
860
|
|
|
855
861
|
def rs_d(self, params):
|
|
856
862
|
"""
|
|
@@ -868,7 +874,7 @@ class Background(eqx.Module):
|
|
|
868
874
|
float
|
|
869
875
|
Sound horizon at decoupling (units: Mpc)
|
|
870
876
|
"""
|
|
871
|
-
return self.interp_rs_at_z(1/jnp.exp(self.lna_tau_tab) - 1, self._tabulate_rs(), self.z_d())
|
|
877
|
+
return self.interp_rs_at_z(1/jnp.exp(self.lna_tau_tab) - 1, self._tabulate_rs(params), self.z_d(params))
|
|
872
878
|
|
|
873
879
|
class ReionizationModel(eqx.Module):
|
|
874
880
|
"""
|
|
@@ -507,13 +507,13 @@ class Model(eqx.Module):
|
|
|
507
507
|
|
|
508
508
|
# There is NO NEED to modify this list!! This is to make sure any new
|
|
509
509
|
# user-defined keys will not trigger recompilation by wrapping them in
|
|
510
|
-
# jnp.array, as is done manually above for all other keys.
|
|
510
|
+
# jnp.array, as is done manually above for all other keys. LINX-
|
|
511
|
+
# related inputs are intentionally excluded from this list!
|
|
511
512
|
expected_keys = {
|
|
512
513
|
'h', 'H0', 'omega_cdm', 'omega_b', 'A_s', 'n_s', 'TCMB0',
|
|
513
514
|
'tau_reion', 'z_reion', 'Delta_z_reion', 'z_reion_He', 'Delta_z_reion_He', 'exp_reion',
|
|
514
515
|
'omega_Lambda', 'T_nu_massive', 'N_nu_massive', 'm_nu_massive',
|
|
515
|
-
'N_nu_massless', 'Neff', 'T_nu_massless',
|
|
516
|
-
'Delta_Neff_init', 'tau_n_fac', 'nuclear_rates_q', 'YHe',
|
|
516
|
+
'N_nu_massless', 'Neff', 'T_nu_massless', 'YHe',
|
|
517
517
|
'omega_m', 'R_b', 'omega_r', 'R_nu', 'om'
|
|
518
518
|
}
|
|
519
519
|
|
|
@@ -43,11 +43,13 @@ class Fluid(eqx.Module):
|
|
|
43
43
|
|
|
44
44
|
delta_idx : int = eqx.field(default=0)
|
|
45
45
|
num_moments : int = eqx.field(default=0, static=True)
|
|
46
|
-
name : str = eqx.field(default="")
|
|
46
|
+
name : str = eqx.field(default="", static=True)
|
|
47
47
|
is_matter : bool = eqx.field(default=False) # Does the fluid contribute towards matter overdensity today.
|
|
48
48
|
|
|
49
49
|
def __init__(self, delta_idx, specs):
|
|
50
50
|
self.delta_idx = delta_idx
|
|
51
|
+
self.name = ""
|
|
52
|
+
self.is_matter = False
|
|
51
53
|
|
|
52
54
|
def rho(self, lna, args):
|
|
53
55
|
"""
|
|
@@ -361,6 +363,7 @@ class DarkEnergy(BackgroundFluid):
|
|
|
361
363
|
|
|
362
364
|
def __init__(self, delta_idx, specs):
|
|
363
365
|
super().__init__(delta_idx, specs)
|
|
366
|
+
self.name = "DarkEnergy"
|
|
364
367
|
|
|
365
368
|
def rho(self, lna, args):
|
|
366
369
|
"""
|
|
@@ -425,6 +428,8 @@ class ColdDarkMatter(StandardFluid):
|
|
|
425
428
|
|
|
426
429
|
def __init__(self, delta_idx, specs):
|
|
427
430
|
super().__init__(delta_idx, specs)
|
|
431
|
+
self.name = "ColdDarkMatter"
|
|
432
|
+
self.is_matter = True
|
|
428
433
|
|
|
429
434
|
def rho(self, lna, args):
|
|
430
435
|
"""
|
|
@@ -535,6 +540,7 @@ class MasslessNeutrino(StandardFluid):
|
|
|
535
540
|
|
|
536
541
|
def __init__(self, delta_idx, specs):
|
|
537
542
|
super().__init__(delta_idx, specs)
|
|
543
|
+
self.name = "MasslessNeutrino"
|
|
538
544
|
self.num_moments = specs["l_max_massless_nu"] + 1
|
|
539
545
|
|
|
540
546
|
def rho(self, lna, args):
|
|
@@ -699,6 +705,8 @@ class MassiveNeutrino(Fluid):
|
|
|
699
705
|
def __init__(self, delta_idx, specs):
|
|
700
706
|
|
|
701
707
|
super().__init__(delta_idx, specs)
|
|
708
|
+
self.name = "MassiveNeutrino"
|
|
709
|
+
self.is_matter = True
|
|
702
710
|
self.num_ells_per_bin = specs["l_max_massive_nu"] + 1
|
|
703
711
|
self.num_moments = 3 * self.num_ells_per_bin
|
|
704
712
|
|
|
@@ -1003,6 +1011,8 @@ class Baryon(StandardFluid):
|
|
|
1003
1011
|
|
|
1004
1012
|
def __init__(self, delta_idx, specs):
|
|
1005
1013
|
super().__init__(delta_idx, specs)
|
|
1014
|
+
self.name = "Baryon"
|
|
1015
|
+
self.is_matter = True
|
|
1006
1016
|
|
|
1007
1017
|
def rho(self, lna, args):
|
|
1008
1018
|
"""
|
|
@@ -1199,6 +1209,7 @@ class Photon(StandardFluid):
|
|
|
1199
1209
|
|
|
1200
1210
|
def __init__(self, delta_idx, specs):
|
|
1201
1211
|
super().__init__(delta_idx, specs)
|
|
1212
|
+
self.name = "Photon"
|
|
1202
1213
|
self.num_F_ell_modes = specs["l_max_g"] + 1
|
|
1203
1214
|
self.num_G_ell_modes = specs["l_max_pol_g"] + 1
|
|
1204
1215
|
self.num_moments = self.num_F_ell_modes + self.num_G_ell_modes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.3"
|
abcmb-0.2.1/abcmb/version.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.2.1"
|
|
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
|
|
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
|
|
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
|