linx-bbn 0.1.4__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.
- linx_bbn-0.1.4/.gitignore +145 -0
- linx_bbn-0.1.4/LICENSE.txt +7 -0
- linx_bbn-0.1.4/PKG-INFO +154 -0
- linx_bbn-0.1.4/README.md +127 -0
- linx_bbn-0.1.4/linx/P_QED.py +71 -0
- linx_bbn-0.1.4/linx/__init__.py +3 -0
- linx_bbn-0.1.4/linx/abundances.py +599 -0
- linx_bbn-0.1.4/linx/background.py +262 -0
- linx_bbn-0.1.4/linx/const.py +127 -0
- linx_bbn-0.1.4/linx/data/__init__.py +0 -0
- linx_bbn-0.1.4/linx/data/background/MB_coefficients.txt +503 -0
- linx_bbn-0.1.4/linx/data/background/QED_P_int.txt +10004 -0
- linx_bbn-0.1.4/linx/data/background/QED_d2P_intdT2.txt +10004 -0
- linx_bbn-0.1.4/linx/data/background/QED_dP_intdT.txt +10004 -0
- linx_bbn-0.1.4/linx/data/background/nue_ann.txt +305 -0
- linx_bbn-0.1.4/linx/data/background/nue_scatt.txt +305 -0
- linx_bbn-0.1.4/linx/data/background/numu_ann.txt +305 -0
- linx_bbn-0.1.4/linx/data/background/numu_scatt.txt +305 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/__init__.py +0 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PArthENoPE.py +612 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2018/Be7nLi7p.txt +501 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2018/He3aBe7g.txt +501 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2018/He3dap.txt +501 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2018/He3ntp.txt +501 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2018/Li7paa.txt +501 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2018/ddHe3n.txt +501 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2018/ddtp.txt +501 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2018/dpHe3g.txt +501 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2018/npdg.txt +501 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2018/taLi7g.txt +501 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2018/tdan.txt +501 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2018/tpag.txt +501 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2023/Be7nLi7p.txt +65 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2023/He3aBe7g.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2023/He3dap.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2023/He3ntp.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2023/Li7paa.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2023/ddHe3n.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2023/ddtp.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2023/dpHe3g.txt +65 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2023/npdg.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2023/taLi7g.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2023/tdan.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_PRIMAT_2023/tpag.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_YOF/Be7nLi7p.txt +503 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_YOF/He3aBe7g.txt +502 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_YOF/He3dap.txt +502 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_YOF/He3ntp.txt +502 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_YOF/Li7paa.txt +502 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_YOF/ddHe3n.txt +502 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_YOF/ddtp.txt +502 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_YOF/dpHe3g.txt +502 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_YOF/npdg.txt +503 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_YOF/taLi7g.txt +502 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_YOF/tdan.txt +502 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_YOF/tpag.txt +503 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_recommended/Be7nLi7p.txt +65 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_recommended/He3aBe7g.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_recommended/He3dap.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_recommended/He3ntp.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_recommended/Li7paa.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_recommended/ddHe3n.txt +153 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_recommended/ddtp.txt +153 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_recommended/dpHe3g.txt +153 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_recommended/npdg.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_recommended/taLi7g.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_recommended/tdan.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/key_recommended/tpag.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/B8dBe7He3.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/B8nBe7d.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/B8nLi6He3.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/B8naap.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/B8tBe7a.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/B8taaHe3.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Be7He3ppaa.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Be7daap.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Be7naa.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Be7pB8g.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Be7tLi6a.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Be7tLi7He3.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Be7taad.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Be7taanp.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/He3He3app.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/He3nag.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/He3tLi6g.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/He3tad.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/He3tanp.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li6He3Be7d.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li6He3aap.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li6dBe7n.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li6dLi7p.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li6nLi7g.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li6nta.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li6pBe7g.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li6pHe3a.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li6tLi7d.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li6tLi8p.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li6taan.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li7He3Li6a.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li7He3aad.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li7He3aanp.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li7dLi8p.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li7daan.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li7nLi8g.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li7paag.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li7taann.txt +63 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li8He3Li7a.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li8He3aat.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li8dLi7t.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/Li8paan.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/annHe6g.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/anpLi6g.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/daLi6g.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/ddag.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/dntg.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/ppndp.txt +62 -0
- linx_bbn-0.1.4/linx/data/nuclear_rates/other_PRIMAT_2023/ttann.txt +62 -0
- linx_bbn-0.1.4/linx/data/weak_thermal_corrections/nTOp_thermal_corrections_SBBN.txt +50 -0
- linx_bbn-0.1.4/linx/data/weak_thermal_corrections/pTOn_thermal_corrections_SBBN.txt +50 -0
- linx_bbn-0.1.4/linx/nuclear.py +916 -0
- linx_bbn-0.1.4/linx/reactions.py +348 -0
- linx_bbn-0.1.4/linx/special_funcs.py +318 -0
- linx_bbn-0.1.4/linx/tau_n_vary_me.py +34 -0
- linx_bbn-0.1.4/linx/thermo.py +1368 -0
- linx_bbn-0.1.4/linx/utils.py +23 -0
- linx_bbn-0.1.4/linx/weak_rates.py +1017 -0
- linx_bbn-0.1.4/pyproject.toml +59 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
*.log
|
|
2
|
+
*.aux
|
|
3
|
+
*.synctex.gz
|
|
4
|
+
*.out
|
|
5
|
+
**/.ipynb_checkpoints
|
|
6
|
+
# Byte-compiled / optimized / DLL files
|
|
7
|
+
__pycache__/
|
|
8
|
+
*.py[cod]
|
|
9
|
+
*$py.class
|
|
10
|
+
*.tfevent
|
|
11
|
+
lightning_logs
|
|
12
|
+
# C extensions
|
|
13
|
+
*.so
|
|
14
|
+
# Distribution / packaging
|
|
15
|
+
.Python
|
|
16
|
+
build/
|
|
17
|
+
develop-eggs/
|
|
18
|
+
dist/
|
|
19
|
+
downloads/
|
|
20
|
+
eggs/
|
|
21
|
+
.eggs/
|
|
22
|
+
lib/
|
|
23
|
+
lib64/
|
|
24
|
+
parts/
|
|
25
|
+
sdist/
|
|
26
|
+
var/
|
|
27
|
+
wheels/
|
|
28
|
+
pip-wheel-metadata/
|
|
29
|
+
share/python-wheels/
|
|
30
|
+
*.egg-info/
|
|
31
|
+
.installed.cfg
|
|
32
|
+
*.egg
|
|
33
|
+
MANIFEST
|
|
34
|
+
# PyInstaller
|
|
35
|
+
# Usually these files are written by a python script from a template
|
|
36
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
37
|
+
*.manifest
|
|
38
|
+
*.spec
|
|
39
|
+
# Installer logs
|
|
40
|
+
pip-log.txt
|
|
41
|
+
pip-delete-this-directory.txt
|
|
42
|
+
# Unit test / coverage reports
|
|
43
|
+
htmlcov/
|
|
44
|
+
.tox/
|
|
45
|
+
.nox/
|
|
46
|
+
.coverage
|
|
47
|
+
.coverage.*
|
|
48
|
+
.cache
|
|
49
|
+
nosetests.xml
|
|
50
|
+
coverage.xml
|
|
51
|
+
*.cover
|
|
52
|
+
*.py,cover
|
|
53
|
+
.hypothesis/
|
|
54
|
+
.pytest_cache/
|
|
55
|
+
# Translations
|
|
56
|
+
*.mo
|
|
57
|
+
*.pot
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
# Flask stuff:
|
|
64
|
+
instance/
|
|
65
|
+
.webassets-cache
|
|
66
|
+
# Scrapy stuff:
|
|
67
|
+
.scrapy
|
|
68
|
+
# Sphinx documentation
|
|
69
|
+
docs/_build/
|
|
70
|
+
# PyBuilder
|
|
71
|
+
target/
|
|
72
|
+
# Jupyter Notebook
|
|
73
|
+
.ipynb_checkpoints
|
|
74
|
+
# IPython
|
|
75
|
+
profile_default/
|
|
76
|
+
ipython_config.py
|
|
77
|
+
# pyenv
|
|
78
|
+
.python-version
|
|
79
|
+
# pipenv
|
|
80
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
81
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
82
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
83
|
+
# install all needed dependencies.
|
|
84
|
+
#Pipfile.lock
|
|
85
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
86
|
+
__pypackages__/
|
|
87
|
+
# Celery stuff
|
|
88
|
+
celerybeat-schedule
|
|
89
|
+
celerybeat.pid
|
|
90
|
+
# SageMath parsed files
|
|
91
|
+
*.sage.py
|
|
92
|
+
# Environments
|
|
93
|
+
.env
|
|
94
|
+
.venv
|
|
95
|
+
env/
|
|
96
|
+
venv/
|
|
97
|
+
ENV/
|
|
98
|
+
env.bak/
|
|
99
|
+
venv.bak/
|
|
100
|
+
# Spyder project settings
|
|
101
|
+
.spyderproject
|
|
102
|
+
.spyproject
|
|
103
|
+
# Rope project settings
|
|
104
|
+
.ropeproject
|
|
105
|
+
# mkdocs documentation
|
|
106
|
+
/site
|
|
107
|
+
# mypy
|
|
108
|
+
.mypy_cache/
|
|
109
|
+
.dmypy.json
|
|
110
|
+
dmypy.json
|
|
111
|
+
# Pyre type checker
|
|
112
|
+
.pyre/
|
|
113
|
+
data/*.npz
|
|
114
|
+
data/samples/*.npz
|
|
115
|
+
data/samples/*.npy
|
|
116
|
+
*.npy
|
|
117
|
+
*.npz
|
|
118
|
+
# !scripts/samples/BBN_only/*.npz
|
|
119
|
+
# !scripts/samples/CMB_only/*.npz
|
|
120
|
+
# !scripts/samples/Joint_analyses/*.npz
|
|
121
|
+
|
|
122
|
+
# Run logs and artifacts
|
|
123
|
+
data/logs/mlruns*
|
|
124
|
+
data/logs/mlruns
|
|
125
|
+
data/logs/wandb
|
|
126
|
+
*.pt
|
|
127
|
+
*.ckpt
|
|
128
|
+
# Tex
|
|
129
|
+
*.aux
|
|
130
|
+
*.bbl
|
|
131
|
+
*.blg
|
|
132
|
+
*.toc
|
|
133
|
+
*.bak
|
|
134
|
+
*Notes.bib
|
|
135
|
+
*.bib.bak
|
|
136
|
+
*.fdb_latexmk
|
|
137
|
+
*.fls
|
|
138
|
+
*.log
|
|
139
|
+
*.synctex.gz*
|
|
140
|
+
*.out
|
|
141
|
+
*.dbj
|
|
142
|
+
*.DS_Store
|
|
143
|
+
.DS_Store
|
|
144
|
+
auto
|
|
145
|
+
data/*
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright 2024 Cara Giovanetti, Mariangela Lisanti, Hongwan Liu, Siddharth Mishra-Sharma, and Joushua T. Ruderman
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
linx_bbn-0.1.4/PKG-INFO
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: linx-bbn
|
|
3
|
+
Version: 0.1.4
|
|
4
|
+
Summary: A fast, differentiable, and extensible Big Bang Nucleosynthesis package in JAX
|
|
5
|
+
Project-URL: Homepage, https://github.com/cgiovanetti/LINX
|
|
6
|
+
Project-URL: Documentation, https://linx.readthedocs.io
|
|
7
|
+
Project-URL: Issues, https://github.com/cgiovanetti/LINX/issues
|
|
8
|
+
Project-URL: Paper, https://arxiv.org/abs/2408.14538
|
|
9
|
+
Author: Cara Giovanetti, Mariangela Lisanti, Hongwan Liu, Siddharth Mishra-Sharma, Joshua T. Ruderman
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
License-File: LICENSE.txt
|
|
12
|
+
Keywords: BBN,big bang nucleosynthesis,cosmology,differentiable,jax
|
|
13
|
+
Classifier: Intended Audience :: Science/Research
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
17
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
18
|
+
Requires-Python: >=3.11
|
|
19
|
+
Requires-Dist: diffrax==0.7.1
|
|
20
|
+
Requires-Dist: equinox>=0.12.0
|
|
21
|
+
Requires-Dist: interpax>=0.3.1
|
|
22
|
+
Requires-Dist: jax>=0.4.38
|
|
23
|
+
Requires-Dist: jaxlib>=0.4.38
|
|
24
|
+
Requires-Dist: numpy>=2.0
|
|
25
|
+
Requires-Dist: optimistix==0.0.11
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
|
|
28
|
+
<h1 align="center">
|
|
29
|
+
LINX<!-- omit from toc -->
|
|
30
|
+
</h1>
|
|
31
|
+
|
|
32
|
+
<h4 align="center">
|
|
33
|
+
|
|
34
|
+
[](https://opensource.org/licenses/MIT)
|
|
35
|
+
[](https://arxiv.org/abs/2408.14538)
|
|
36
|
+
[](https://github.com/cgiovanetti/LINX/actions/workflows/test.yml)
|
|
37
|
+
</h4>
|
|
38
|
+
|
|
39
|
+
Light Isotope Nucleosynthesis with JAX (LINX) is a fast, differentiable, extensible code that can be used to predict primordial light element abundances during Big Bang Nucleosynthesis (BBN). LINX is written in python using JAX, and is readable, accessible, and well-documented. Full documentation is available at [https://linx.readthedocs.io/en/latest/](https://linx.readthedocs.io/en/latest/).
|
|
40
|
+
|
|
41
|
+
## Contents<!-- omit from toc -->
|
|
42
|
+
|
|
43
|
+
- [Installation](#installation)
|
|
44
|
+
- [Repository structure](#repository-structure)
|
|
45
|
+
- [Issues](#issues)
|
|
46
|
+
- [Citation](#citation)
|
|
47
|
+
- [References](#references)
|
|
48
|
+
</center>
|
|
49
|
+
|
|
50
|
+
## Installation
|
|
51
|
+
It is strongly recommended that you create a clean conda environment with the latest python. All of the requirements are included in `requirements.txt`. In summary, run
|
|
52
|
+
```
|
|
53
|
+
conda create --name linx
|
|
54
|
+
conda activate linx
|
|
55
|
+
pip install -r requirements.txt
|
|
56
|
+
```
|
|
57
|
+
(Include `path/to/requirements.txt` if you're in a different directory.) This will install the minimum set of dependencies, with the latest versions of your packages available with your selected python version.
|
|
58
|
+
|
|
59
|
+
If you are running with python <= 3.10, or if you are willing to tolerate old JAX versions for **2x faster runtimes**, instead run
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
conda create --name linx
|
|
63
|
+
conda activate linx
|
|
64
|
+
pip install -r requirements-fast.txt
|
|
65
|
+
python -m pip install --no-deps interpax==0.3.1
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Finally, `requirements-other.txt` provides all auxiliary packages needed to run all notebooks and analyses in this repo.
|
|
69
|
+
|
|
70
|
+
## Repository structure
|
|
71
|
+
|
|
72
|
+
Modules of the code are contained in the `linx` directory, along with the various sets of BBN reaction rates that ship with LINX. `example_notebooks` contains a set of pedagogical Jupyter noteboooks for users familiarizing themselves with LINX. `scripts` contains a suite of scripts for testing and using LINX. Finally, `pytest` contains brief pytest scripts for continuous checking of this repository.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
## Issues
|
|
76
|
+
Please feel free to open up an issue if you notice something is amiss in LINX.
|
|
77
|
+
|
|
78
|
+
## Citation
|
|
79
|
+
If you use LINX, we suggest you cite both LINX and the other public codes that provide a foundation for LINX: nudec_BSM (https://arxiv.org/abs/1812.05605, https://arxiv.org/pdf/2001.04466), PRIMAT (http://www2.iap.fr/users/pitrou/primat.htm), and PRyMordial (https://arxiv.org/abs/2307.07061).
|
|
80
|
+
|
|
81
|
+
The suggested language for citation is "LINX [linx], which uses methods and tables from Refs. [nudecBSM1,nudecBSM2,PRIMAT,PRyM]". All of these citations are included below.
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
@article{linx,
|
|
85
|
+
title={{LINX}: A Fast, Differentiable, and Extensible Big Bang Nucleosynthesis Package},
|
|
86
|
+
author = {Giovanetti, Cara and Lisanti, Mariangela and Liu, Hongwan and Mishra-Sharma, Siddharth and Ruderman, Joshua T.},
|
|
87
|
+
journal = {Phys. Rev. D},
|
|
88
|
+
volume = {112},
|
|
89
|
+
issue = {6},
|
|
90
|
+
pages = {063531},
|
|
91
|
+
numpages = {33},
|
|
92
|
+
year = {2025},
|
|
93
|
+
month = {Sep},
|
|
94
|
+
publisher = {American Physical Society},
|
|
95
|
+
doi = {10.1103/f3tj-r882},
|
|
96
|
+
url = {https://link.aps.org/doi/10.1103/f3tj-r882}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@article{nudecBSM1,
|
|
100
|
+
title={Neutrino decoupling beyond the {S}tandard {M}odel: {CMB} constraints on the Dark Matter mass with a fast and precise {N}eff evaluation},
|
|
101
|
+
volume={2019},
|
|
102
|
+
ISSN={1475-7516},
|
|
103
|
+
url={http://dx.doi.org/10.1088/1475-7516/2019/02/007},
|
|
104
|
+
DOI={10.1088/1475-7516/2019/02/007},
|
|
105
|
+
number={02},
|
|
106
|
+
journal={Journal of Cosmology and Astroparticle Physics},
|
|
107
|
+
publisher={IOP Publishing},
|
|
108
|
+
author={Escudero, Miguel},
|
|
109
|
+
year={2019},
|
|
110
|
+
month=feb, pages={007–007} }
|
|
111
|
+
|
|
112
|
+
@article{nudecBSM2,
|
|
113
|
+
title={Precision early universe thermodynamics made simple:{N}eff and neutrino decoupling in the {S}tandard {M}odel and beyond},
|
|
114
|
+
volume={2020},
|
|
115
|
+
ISSN={1475-7516},
|
|
116
|
+
url={http://dx.doi.org/10.1088/1475-7516/2020/05/048},
|
|
117
|
+
DOI={10.1088/1475-7516/2020/05/048},
|
|
118
|
+
number={05},
|
|
119
|
+
journal={Journal of Cosmology and Astroparticle Physics},
|
|
120
|
+
publisher={IOP Publishing},
|
|
121
|
+
author={Abenza, Miguel Escudero},
|
|
122
|
+
year={2020},
|
|
123
|
+
month=may, pages={048–048} }
|
|
124
|
+
|
|
125
|
+
@article{PRIMAT,
|
|
126
|
+
title={Precision big bang nucleosynthesis with improved {H}elium-4 predictions},
|
|
127
|
+
volume={754},
|
|
128
|
+
ISSN={0370-1573},
|
|
129
|
+
url={http://dx.doi.org/10.1016/j.physrep.2018.04.005},
|
|
130
|
+
DOI={10.1016/j.physrep.2018.04.005},
|
|
131
|
+
journal={Physics Reports},
|
|
132
|
+
publisher={Elsevier BV},
|
|
133
|
+
author={Pitrou, Cyril and Coc, Alain and Uzan, Jean-Philippe and Vangioni, Elisabeth},
|
|
134
|
+
year={2018},
|
|
135
|
+
month=sep, pages={1–66} }
|
|
136
|
+
|
|
137
|
+
@article{PRyM,
|
|
138
|
+
author = "Burns, Anne-Katherine and Tait, Tim M. P. and Valli, Mauro",
|
|
139
|
+
title = "{PRyMordial: the first three minutes, within and beyond the Standard Model}",
|
|
140
|
+
eprint = "2307.07061",
|
|
141
|
+
archivePrefix = "arXiv",
|
|
142
|
+
primaryClass = "hep-ph",
|
|
143
|
+
reportNumber = "UCI-HEP-TR-2023-07, YITP-SB-2023-16",
|
|
144
|
+
doi = "10.1140/epjc/s10052-024-12442-0",
|
|
145
|
+
journal = "Eur. Phys. J. C",
|
|
146
|
+
volume = "84",
|
|
147
|
+
number = "1", pages = "86",
|
|
148
|
+
year = "2024" }
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## References
|
|
152
|
+
A detailed reference outlining the structure and philosophy of LINX and including examples of how to use it with gradient-assisted methods is available at [https://arxiv.org/abs/2408.14538](https://arxiv.org/abs/2408.14538).
|
|
153
|
+
|
|
154
|
+
An example of an analysis that can be performed with LINX, where LINX is used with CLASS to perform an analysis with a joint CMB and BBN likelihood, is available at [https://arxiv.org/abs/2408.14531](https://arxiv.org/abs/2408.14531).
|
linx_bbn-0.1.4/README.md
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
<h1 align="center">
|
|
2
|
+
LINX<!-- omit from toc -->
|
|
3
|
+
</h1>
|
|
4
|
+
|
|
5
|
+
<h4 align="center">
|
|
6
|
+
|
|
7
|
+
[](https://opensource.org/licenses/MIT)
|
|
8
|
+
[](https://arxiv.org/abs/2408.14538)
|
|
9
|
+
[](https://github.com/cgiovanetti/LINX/actions/workflows/test.yml)
|
|
10
|
+
</h4>
|
|
11
|
+
|
|
12
|
+
Light Isotope Nucleosynthesis with JAX (LINX) is a fast, differentiable, extensible code that can be used to predict primordial light element abundances during Big Bang Nucleosynthesis (BBN). LINX is written in python using JAX, and is readable, accessible, and well-documented. Full documentation is available at [https://linx.readthedocs.io/en/latest/](https://linx.readthedocs.io/en/latest/).
|
|
13
|
+
|
|
14
|
+
## Contents<!-- omit from toc -->
|
|
15
|
+
|
|
16
|
+
- [Installation](#installation)
|
|
17
|
+
- [Repository structure](#repository-structure)
|
|
18
|
+
- [Issues](#issues)
|
|
19
|
+
- [Citation](#citation)
|
|
20
|
+
- [References](#references)
|
|
21
|
+
</center>
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
It is strongly recommended that you create a clean conda environment with the latest python. All of the requirements are included in `requirements.txt`. In summary, run
|
|
25
|
+
```
|
|
26
|
+
conda create --name linx
|
|
27
|
+
conda activate linx
|
|
28
|
+
pip install -r requirements.txt
|
|
29
|
+
```
|
|
30
|
+
(Include `path/to/requirements.txt` if you're in a different directory.) This will install the minimum set of dependencies, with the latest versions of your packages available with your selected python version.
|
|
31
|
+
|
|
32
|
+
If you are running with python <= 3.10, or if you are willing to tolerate old JAX versions for **2x faster runtimes**, instead run
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
conda create --name linx
|
|
36
|
+
conda activate linx
|
|
37
|
+
pip install -r requirements-fast.txt
|
|
38
|
+
python -m pip install --no-deps interpax==0.3.1
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Finally, `requirements-other.txt` provides all auxiliary packages needed to run all notebooks and analyses in this repo.
|
|
42
|
+
|
|
43
|
+
## Repository structure
|
|
44
|
+
|
|
45
|
+
Modules of the code are contained in the `linx` directory, along with the various sets of BBN reaction rates that ship with LINX. `example_notebooks` contains a set of pedagogical Jupyter noteboooks for users familiarizing themselves with LINX. `scripts` contains a suite of scripts for testing and using LINX. Finally, `pytest` contains brief pytest scripts for continuous checking of this repository.
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
## Issues
|
|
49
|
+
Please feel free to open up an issue if you notice something is amiss in LINX.
|
|
50
|
+
|
|
51
|
+
## Citation
|
|
52
|
+
If you use LINX, we suggest you cite both LINX and the other public codes that provide a foundation for LINX: nudec_BSM (https://arxiv.org/abs/1812.05605, https://arxiv.org/pdf/2001.04466), PRIMAT (http://www2.iap.fr/users/pitrou/primat.htm), and PRyMordial (https://arxiv.org/abs/2307.07061).
|
|
53
|
+
|
|
54
|
+
The suggested language for citation is "LINX [linx], which uses methods and tables from Refs. [nudecBSM1,nudecBSM2,PRIMAT,PRyM]". All of these citations are included below.
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
@article{linx,
|
|
58
|
+
title={{LINX}: A Fast, Differentiable, and Extensible Big Bang Nucleosynthesis Package},
|
|
59
|
+
author = {Giovanetti, Cara and Lisanti, Mariangela and Liu, Hongwan and Mishra-Sharma, Siddharth and Ruderman, Joshua T.},
|
|
60
|
+
journal = {Phys. Rev. D},
|
|
61
|
+
volume = {112},
|
|
62
|
+
issue = {6},
|
|
63
|
+
pages = {063531},
|
|
64
|
+
numpages = {33},
|
|
65
|
+
year = {2025},
|
|
66
|
+
month = {Sep},
|
|
67
|
+
publisher = {American Physical Society},
|
|
68
|
+
doi = {10.1103/f3tj-r882},
|
|
69
|
+
url = {https://link.aps.org/doi/10.1103/f3tj-r882}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@article{nudecBSM1,
|
|
73
|
+
title={Neutrino decoupling beyond the {S}tandard {M}odel: {CMB} constraints on the Dark Matter mass with a fast and precise {N}eff evaluation},
|
|
74
|
+
volume={2019},
|
|
75
|
+
ISSN={1475-7516},
|
|
76
|
+
url={http://dx.doi.org/10.1088/1475-7516/2019/02/007},
|
|
77
|
+
DOI={10.1088/1475-7516/2019/02/007},
|
|
78
|
+
number={02},
|
|
79
|
+
journal={Journal of Cosmology and Astroparticle Physics},
|
|
80
|
+
publisher={IOP Publishing},
|
|
81
|
+
author={Escudero, Miguel},
|
|
82
|
+
year={2019},
|
|
83
|
+
month=feb, pages={007–007} }
|
|
84
|
+
|
|
85
|
+
@article{nudecBSM2,
|
|
86
|
+
title={Precision early universe thermodynamics made simple:{N}eff and neutrino decoupling in the {S}tandard {M}odel and beyond},
|
|
87
|
+
volume={2020},
|
|
88
|
+
ISSN={1475-7516},
|
|
89
|
+
url={http://dx.doi.org/10.1088/1475-7516/2020/05/048},
|
|
90
|
+
DOI={10.1088/1475-7516/2020/05/048},
|
|
91
|
+
number={05},
|
|
92
|
+
journal={Journal of Cosmology and Astroparticle Physics},
|
|
93
|
+
publisher={IOP Publishing},
|
|
94
|
+
author={Abenza, Miguel Escudero},
|
|
95
|
+
year={2020},
|
|
96
|
+
month=may, pages={048–048} }
|
|
97
|
+
|
|
98
|
+
@article{PRIMAT,
|
|
99
|
+
title={Precision big bang nucleosynthesis with improved {H}elium-4 predictions},
|
|
100
|
+
volume={754},
|
|
101
|
+
ISSN={0370-1573},
|
|
102
|
+
url={http://dx.doi.org/10.1016/j.physrep.2018.04.005},
|
|
103
|
+
DOI={10.1016/j.physrep.2018.04.005},
|
|
104
|
+
journal={Physics Reports},
|
|
105
|
+
publisher={Elsevier BV},
|
|
106
|
+
author={Pitrou, Cyril and Coc, Alain and Uzan, Jean-Philippe and Vangioni, Elisabeth},
|
|
107
|
+
year={2018},
|
|
108
|
+
month=sep, pages={1–66} }
|
|
109
|
+
|
|
110
|
+
@article{PRyM,
|
|
111
|
+
author = "Burns, Anne-Katherine and Tait, Tim M. P. and Valli, Mauro",
|
|
112
|
+
title = "{PRyMordial: the first three minutes, within and beyond the Standard Model}",
|
|
113
|
+
eprint = "2307.07061",
|
|
114
|
+
archivePrefix = "arXiv",
|
|
115
|
+
primaryClass = "hep-ph",
|
|
116
|
+
reportNumber = "UCI-HEP-TR-2023-07, YITP-SB-2023-16",
|
|
117
|
+
doi = "10.1140/epjc/s10052-024-12442-0",
|
|
118
|
+
journal = "Eur. Phys. J. C",
|
|
119
|
+
volume = "84",
|
|
120
|
+
number = "1", pages = "86",
|
|
121
|
+
year = "2024" }
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## References
|
|
125
|
+
A detailed reference outlining the structure and philosophy of LINX and including examples of how to use it with gradient-assisted methods is available at [https://arxiv.org/abs/2408.14538](https://arxiv.org/abs/2408.14538).
|
|
126
|
+
|
|
127
|
+
An example of an analysis that can be performed with LINX, where LINX is used with CLASS to perform an analysis with a joint CMB and BBN likelihood, is available at [https://arxiv.org/abs/2408.14531](https://arxiv.org/abs/2408.14531).
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import os
|
|
2
|
+
|
|
3
|
+
import numpy as np
|
|
4
|
+
|
|
5
|
+
import jax.numpy as jnp
|
|
6
|
+
import jax.lax as lax
|
|
7
|
+
from jax import grad, vmap
|
|
8
|
+
|
|
9
|
+
import linx.const as const
|
|
10
|
+
import equinox as eqx
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# high temperature behavior is not correct, probably because bounds need to
|
|
14
|
+
# change with T.
|
|
15
|
+
# Low temperature behavior is perfect.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def explicit_P0(T, me): # not needed, computed in thermo
|
|
19
|
+
# 4.5 of https://arxiv.org/pdf/1911.04504
|
|
20
|
+
|
|
21
|
+
prefac = T/jnp.pi**2
|
|
22
|
+
|
|
23
|
+
p = jnp.linspace(0,50*T,num=3000) # this integral peaks at p close to T, integrating to 50*T is fine as long as resolution is very good
|
|
24
|
+
Ee = jnp.sqrt(p**2 + me**2)
|
|
25
|
+
integrand = p**2 * jnp.log( (1 + jnp.exp(-Ee/T))**2 / (1 - jnp.exp(-p/T)) )
|
|
26
|
+
|
|
27
|
+
res = jnp.trapezoid(jnp.nan_to_num(integrand,nan=0),p) # p = 0 gives a nan, should be 0
|
|
28
|
+
|
|
29
|
+
return prefac * res
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def explicit_P2(T, me):
|
|
33
|
+
# first compute 4.7 of https://arxiv.org/pdf/1911.04504, but ignoring the
|
|
34
|
+
# last term because it's itty bitty according to them
|
|
35
|
+
|
|
36
|
+
e = jnp.sqrt(const.aFS * 4 * jnp.pi)
|
|
37
|
+
prefac1 = - e**2 * T**2 / (12 * jnp.pi**2)
|
|
38
|
+
prefac2 = - e**2/(8 * jnp.pi**4)
|
|
39
|
+
|
|
40
|
+
p = jnp.linspace(0,50*T,num=2000) # this integral peaks at p close to T, integrating to 50*T is fine as long as resolution is good
|
|
41
|
+
Ep = jnp.sqrt(p**2 + me**2)
|
|
42
|
+
integrand = p**2/Ep * 2/(jnp.exp(Ep/T) + 1)
|
|
43
|
+
|
|
44
|
+
res = jnp.trapezoid(integrand,p)
|
|
45
|
+
|
|
46
|
+
return prefac1 * res + prefac2 * res**2
|
|
47
|
+
|
|
48
|
+
def explicit_P3(T, me):
|
|
49
|
+
# compute 4.24 of https://arxiv.org/pdf/1911.04504
|
|
50
|
+
|
|
51
|
+
e = jnp.sqrt(const.aFS * 4 * jnp.pi)
|
|
52
|
+
prefac = e**3 * T/(12 * jnp.pi**4)
|
|
53
|
+
|
|
54
|
+
p = jnp.linspace(0,50*T,num=2000) # this integral also peaks at p close to T, integrating to 50 is fine as long as resolution is good
|
|
55
|
+
Ep = jnp.sqrt(p**2 + me**2)
|
|
56
|
+
integrand = (p**2 + Ep**2)/Ep * 2/(jnp.exp(Ep/T) + 1)
|
|
57
|
+
|
|
58
|
+
res = jnp.trapezoid(integrand,p)
|
|
59
|
+
|
|
60
|
+
return prefac * res**(3./2)
|
|
61
|
+
|
|
62
|
+
def P_QED(T,me): # not needed, sums in thermo
|
|
63
|
+
return explicit_P0(T, me) + explicit_P2(T, me) + explicit_P3(T, me)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
dPdTQED_2 = grad(explicit_P2,argnums=0)
|
|
67
|
+
dPdTQED_3 = grad(explicit_P3,argnums=0)
|
|
68
|
+
|
|
69
|
+
# we don't need these computed explicitly, actually
|
|
70
|
+
d2PdT2QED_2 = grad(dPdTQED_2,argnums=0)
|
|
71
|
+
d2PdT2QED_3 = grad(dPdTQED_3,argnums=0)
|