jaxion 0.0.8__tar.gz → 0.0.10__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.
Files changed (29) hide show
  1. {jaxion-0.0.8 → jaxion-0.0.10}/PKG-INFO +21 -15
  2. {jaxion-0.0.8 → jaxion-0.0.10}/README.md +14 -9
  3. jaxion-0.0.10/jaxion/__init__.py +20 -0
  4. {jaxion-0.0.8 → jaxion-0.0.10}/jaxion/hydro.py +18 -12
  5. {jaxion-0.0.8 → jaxion-0.0.10}/jaxion.egg-info/PKG-INFO +21 -15
  6. jaxion-0.0.10/jaxion.egg-info/requires.txt +12 -0
  7. {jaxion-0.0.8 → jaxion-0.0.10}/pyproject.toml +2 -2
  8. jaxion-0.0.10/requirements.txt +9 -0
  9. jaxion-0.0.8/jaxion/__init__.py +0 -3
  10. jaxion-0.0.8/jaxion.egg-info/requires.txt +0 -11
  11. jaxion-0.0.8/requirements.txt +0 -8
  12. {jaxion-0.0.8 → jaxion-0.0.10}/LICENSE +0 -0
  13. {jaxion-0.0.8 → jaxion-0.0.10}/jaxion/analysis.py +0 -0
  14. {jaxion-0.0.8 → jaxion-0.0.10}/jaxion/constants.py +0 -0
  15. {jaxion-0.0.8 → jaxion-0.0.10}/jaxion/cosmology.py +0 -0
  16. {jaxion-0.0.8 → jaxion-0.0.10}/jaxion/defaults.json +0 -0
  17. {jaxion-0.0.8 → jaxion-0.0.10}/jaxion/gravity.py +0 -0
  18. {jaxion-0.0.8 → jaxion-0.0.10}/jaxion/particles.py +0 -0
  19. {jaxion-0.0.8 → jaxion-0.0.10}/jaxion/quantum.py +0 -0
  20. {jaxion-0.0.8 → jaxion-0.0.10}/jaxion/simulation.py +0 -0
  21. {jaxion-0.0.8 → jaxion-0.0.10}/jaxion/utils.py +0 -0
  22. {jaxion-0.0.8 → jaxion-0.0.10}/jaxion/visualization.py +0 -0
  23. {jaxion-0.0.8 → jaxion-0.0.10}/jaxion.egg-info/SOURCES.txt +0 -0
  24. {jaxion-0.0.8 → jaxion-0.0.10}/jaxion.egg-info/dependency_links.txt +0 -0
  25. {jaxion-0.0.8 → jaxion-0.0.10}/jaxion.egg-info/top_level.txt +0 -0
  26. {jaxion-0.0.8 → jaxion-0.0.10}/setup.cfg +0 -0
  27. {jaxion-0.0.8 → jaxion-0.0.10}/tests/test_analysis.py +0 -0
  28. {jaxion-0.0.8 → jaxion-0.0.10}/tests/test_cosmology.py +0 -0
  29. {jaxion-0.0.8 → jaxion-0.0.10}/tests/test_examples.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jaxion
3
- Version: 0.0.8
3
+ Version: 0.0.10
4
4
  Summary: A differentiable simulation library for fuzzy dark matter in JAX
5
5
  Author-email: Philip Mocz <philip.mocz@gmail.com>
6
6
  License-Expression: Apache-2.0
@@ -9,16 +9,17 @@ Project-URL: Homepage, https://github.com/JaxionProject/jaxion
9
9
  Requires-Python: >=3.11
10
10
  Description-Content-Type: text/markdown
11
11
  License-File: LICENSE
12
- Requires-Dist: jax==0.5.3
13
- Requires-Dist: jaxdecomp==0.2.7
12
+ Requires-Dist: jax==0.6.0
13
+ Requires-Dist: jaxdecomp==0.2.9
14
14
  Requires-Dist: tensorflow
15
- Requires-Dist: orbax-checkpoint==0.11.18
16
- Requires-Dist: optax==0.2.5
15
+ Requires-Dist: orbax-checkpoint==0.11.25
16
+ Requires-Dist: optax==0.2.6
17
17
  Requires-Dist: numpy
18
18
  Requires-Dist: matplotlib
19
19
  Requires-Dist: setuptools>=70.1.1
20
+ Requires-Dist: chex==0.1.90
20
21
  Provides-Extra: cuda12
21
- Requires-Dist: jax[cuda12]==0.5.3; extra == "cuda12"
22
+ Requires-Dist: jax[cuda12]==0.6.0; extra == "cuda12"
22
23
  Dynamic: license-file
23
24
 
24
25
  <p align="center">
@@ -76,13 +77,7 @@ Install with:
76
77
  pip install jaxion
77
78
  ```
78
79
 
79
- or, for GPU support, use:
80
-
81
- ```console
82
- pip install jaxion[cuda12]
83
- ```
84
-
85
- See the docs for more info on how to [build from source](https://jaxion.readthedocs.io/en/latest/pages/installation.html).
80
+ or see the docs for how to [build from source](https://jaxion.readthedocs.io/en/latest/pages/installation.html).
86
81
 
87
82
 
88
83
  ## Examples
@@ -122,6 +117,11 @@ Check out the [`examples/`](https://github.com/JaxionProject/jaxion/tree/main/ex
122
117
  </p>
123
118
 
124
119
 
120
+ ## Try it out!
121
+
122
+ Launch a live demo in Google Colab: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JaxionProject/jaxion/blob/main/notebooks/soliton_binary_merger/soliton_binary_merger.ipynb)
123
+
124
+
125
125
  ## High-Performance
126
126
 
127
127
  Jaxion is scalable on multiple GPUs!
@@ -138,6 +138,12 @@ Jaxion is scalable on multiple GPUs!
138
138
  Jaxion welcomes community contributions of all kinds. Open an issue or fork the code and submit a pull request. Please check out the [Contributing Guidelines](CONTRIBUTING.md)
139
139
 
140
140
 
141
+ ## TODO/Wishlist
142
+
143
+ * cosmological initial condition generator
144
+ * add cosmological factors to gas evolution
145
+
146
+
141
147
  ## Links
142
148
 
143
149
  * [Code repository](https://github.com/JaxionProject/jaxion) on GitHub (this page).
@@ -152,10 +158,10 @@ If you use this software, please cite it as below.
152
158
  @software{Mocz_Jaxion_2025,
153
159
  author = {Mocz, Philip},
154
160
  doi = {10.5281/zenodo.17438467},
155
- month = oct,
161
+ month = dec,
156
162
  title = {{Jaxion}},
157
163
  url = {https://github.com/JaxionProject/jaxion},
158
- version = {0.0.4},
164
+ version = {0.0.9},
159
165
  year = {2025}
160
166
  }
161
167
  ```
@@ -53,13 +53,7 @@ Install with:
53
53
  pip install jaxion
54
54
  ```
55
55
 
56
- or, for GPU support, use:
57
-
58
- ```console
59
- pip install jaxion[cuda12]
60
- ```
61
-
62
- See the docs for more info on how to [build from source](https://jaxion.readthedocs.io/en/latest/pages/installation.html).
56
+ or see the docs for how to [build from source](https://jaxion.readthedocs.io/en/latest/pages/installation.html).
63
57
 
64
58
 
65
59
  ## Examples
@@ -99,6 +93,11 @@ Check out the [`examples/`](https://github.com/JaxionProject/jaxion/tree/main/ex
99
93
  </p>
100
94
 
101
95
 
96
+ ## Try it out!
97
+
98
+ Launch a live demo in Google Colab: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JaxionProject/jaxion/blob/main/notebooks/soliton_binary_merger/soliton_binary_merger.ipynb)
99
+
100
+
102
101
  ## High-Performance
103
102
 
104
103
  Jaxion is scalable on multiple GPUs!
@@ -115,6 +114,12 @@ Jaxion is scalable on multiple GPUs!
115
114
  Jaxion welcomes community contributions of all kinds. Open an issue or fork the code and submit a pull request. Please check out the [Contributing Guidelines](CONTRIBUTING.md)
116
115
 
117
116
 
117
+ ## TODO/Wishlist
118
+
119
+ * cosmological initial condition generator
120
+ * add cosmological factors to gas evolution
121
+
122
+
118
123
  ## Links
119
124
 
120
125
  * [Code repository](https://github.com/JaxionProject/jaxion) on GitHub (this page).
@@ -129,10 +134,10 @@ If you use this software, please cite it as below.
129
134
  @software{Mocz_Jaxion_2025,
130
135
  author = {Mocz, Philip},
131
136
  doi = {10.5281/zenodo.17438467},
132
- month = oct,
137
+ month = dec,
133
138
  title = {{Jaxion}},
134
139
  url = {https://github.com/JaxionProject/jaxion},
135
- version = {0.0.4},
140
+ version = {0.0.9},
136
141
  year = {2025}
137
142
  }
138
143
  ```
@@ -0,0 +1,20 @@
1
+ from importlib.metadata import version, PackageNotFoundError
2
+
3
+ from .simulation import Simulation as Simulation
4
+ from .constants import constants as constants
5
+ from .analysis import radial_power_spectrum as radial_power_spectrum
6
+
7
+ """
8
+ jaxion: A JAX library for simulations of fuzzy dark matter, stars, gas + more!
9
+ """
10
+
11
+ try:
12
+ __version__ = version("jaxion")
13
+ except PackageNotFoundError:
14
+ __version__ = "unknown"
15
+
16
+ __all__ = [
17
+ "Simulation",
18
+ "constants",
19
+ "radial_power_spectrum",
20
+ ]
@@ -197,36 +197,42 @@ def slope_limiter(f, dx, f_dx, f_dy, f_dz):
197
197
  denom = adjust_denominator(orig_f_dx)
198
198
  num = (f - jnp.roll(f, 1, axis=0)) / dx
199
199
  ratio = num / denom
200
- limiter = jnp.maximum(0.0, jnp.minimum(1.0, ratio))
201
- f_dx = limiter * f_dx
200
+ limiter_left = jnp.maximum(0.0, jnp.minimum(1.0, ratio))
202
201
 
203
202
  num = -(f - jnp.roll(f, -1, axis=0)) / dx
204
203
  ratio = num / denom # Use the same adjusted denominator
205
- limiter = jnp.maximum(0.0, jnp.minimum(1.0, ratio))
206
- f_dx = limiter * f_dx
204
+ limiter_right = jnp.maximum(0.0, jnp.minimum(1.0, ratio))
205
+
206
+ # Take minimum of both limiters and apply to original slope
207
+ limiter = jnp.minimum(limiter_left, limiter_right)
208
+ f_dx = limiter * orig_f_dx
207
209
 
208
210
  # For y-direction
209
211
  denom = adjust_denominator(orig_f_dy)
210
212
  num = (f - jnp.roll(f, 1, axis=1)) / dx
211
213
  ratio = num / denom
212
- limiter = jnp.maximum(0.0, jnp.minimum(1.0, ratio))
213
- f_dy = limiter * f_dy
214
+ limiter_left = jnp.maximum(0.0, jnp.minimum(1.0, ratio))
214
215
 
215
216
  num = -(f - jnp.roll(f, -1, axis=1)) / dx
216
217
  ratio = num / denom
217
- limiter = jnp.maximum(0.0, jnp.minimum(1.0, ratio))
218
- f_dy = limiter * f_dy
218
+ limiter_right = jnp.maximum(0.0, jnp.minimum(1.0, ratio))
219
+
220
+ # Take minimum of both limiters and apply to original slope
221
+ limiter = jnp.minimum(limiter_left, limiter_right)
222
+ f_dy = limiter * orig_f_dy
219
223
 
220
224
  # For z-direction
221
225
  denom = adjust_denominator(orig_f_dz)
222
226
  num = (f - jnp.roll(f, 1, axis=2)) / dx
223
227
  ratio = num / denom
224
- limiter = jnp.maximum(0.0, jnp.minimum(1.0, ratio))
225
- f_dz = limiter * f_dz
228
+ limiter_left = jnp.maximum(0.0, jnp.minimum(1.0, ratio))
226
229
 
227
230
  num = -(f - jnp.roll(f, -1, axis=2)) / dx
228
231
  ratio = num / denom
229
- limiter = jnp.maximum(0.0, jnp.minimum(1.0, ratio))
230
- f_dz = limiter * f_dz
232
+ limiter_right = jnp.maximum(0.0, jnp.minimum(1.0, ratio))
233
+
234
+ # Take minimum of both limiters and apply to original slope
235
+ limiter = jnp.minimum(limiter_left, limiter_right)
236
+ f_dz = limiter * orig_f_dz
231
237
 
232
238
  return f_dx, f_dy, f_dz
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jaxion
3
- Version: 0.0.8
3
+ Version: 0.0.10
4
4
  Summary: A differentiable simulation library for fuzzy dark matter in JAX
5
5
  Author-email: Philip Mocz <philip.mocz@gmail.com>
6
6
  License-Expression: Apache-2.0
@@ -9,16 +9,17 @@ Project-URL: Homepage, https://github.com/JaxionProject/jaxion
9
9
  Requires-Python: >=3.11
10
10
  Description-Content-Type: text/markdown
11
11
  License-File: LICENSE
12
- Requires-Dist: jax==0.5.3
13
- Requires-Dist: jaxdecomp==0.2.7
12
+ Requires-Dist: jax==0.6.0
13
+ Requires-Dist: jaxdecomp==0.2.9
14
14
  Requires-Dist: tensorflow
15
- Requires-Dist: orbax-checkpoint==0.11.18
16
- Requires-Dist: optax==0.2.5
15
+ Requires-Dist: orbax-checkpoint==0.11.25
16
+ Requires-Dist: optax==0.2.6
17
17
  Requires-Dist: numpy
18
18
  Requires-Dist: matplotlib
19
19
  Requires-Dist: setuptools>=70.1.1
20
+ Requires-Dist: chex==0.1.90
20
21
  Provides-Extra: cuda12
21
- Requires-Dist: jax[cuda12]==0.5.3; extra == "cuda12"
22
+ Requires-Dist: jax[cuda12]==0.6.0; extra == "cuda12"
22
23
  Dynamic: license-file
23
24
 
24
25
  <p align="center">
@@ -76,13 +77,7 @@ Install with:
76
77
  pip install jaxion
77
78
  ```
78
79
 
79
- or, for GPU support, use:
80
-
81
- ```console
82
- pip install jaxion[cuda12]
83
- ```
84
-
85
- See the docs for more info on how to [build from source](https://jaxion.readthedocs.io/en/latest/pages/installation.html).
80
+ or see the docs for how to [build from source](https://jaxion.readthedocs.io/en/latest/pages/installation.html).
86
81
 
87
82
 
88
83
  ## Examples
@@ -122,6 +117,11 @@ Check out the [`examples/`](https://github.com/JaxionProject/jaxion/tree/main/ex
122
117
  </p>
123
118
 
124
119
 
120
+ ## Try it out!
121
+
122
+ Launch a live demo in Google Colab: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JaxionProject/jaxion/blob/main/notebooks/soliton_binary_merger/soliton_binary_merger.ipynb)
123
+
124
+
125
125
  ## High-Performance
126
126
 
127
127
  Jaxion is scalable on multiple GPUs!
@@ -138,6 +138,12 @@ Jaxion is scalable on multiple GPUs!
138
138
  Jaxion welcomes community contributions of all kinds. Open an issue or fork the code and submit a pull request. Please check out the [Contributing Guidelines](CONTRIBUTING.md)
139
139
 
140
140
 
141
+ ## TODO/Wishlist
142
+
143
+ * cosmological initial condition generator
144
+ * add cosmological factors to gas evolution
145
+
146
+
141
147
  ## Links
142
148
 
143
149
  * [Code repository](https://github.com/JaxionProject/jaxion) on GitHub (this page).
@@ -152,10 +158,10 @@ If you use this software, please cite it as below.
152
158
  @software{Mocz_Jaxion_2025,
153
159
  author = {Mocz, Philip},
154
160
  doi = {10.5281/zenodo.17438467},
155
- month = oct,
161
+ month = dec,
156
162
  title = {{Jaxion}},
157
163
  url = {https://github.com/JaxionProject/jaxion},
158
- version = {0.0.4},
164
+ version = {0.0.9},
159
165
  year = {2025}
160
166
  }
161
167
  ```
@@ -0,0 +1,12 @@
1
+ jax==0.6.0
2
+ jaxdecomp==0.2.9
3
+ tensorflow
4
+ orbax-checkpoint==0.11.25
5
+ optax==0.2.6
6
+ numpy
7
+ matplotlib
8
+ setuptools>=70.1.1
9
+ chex==0.1.90
10
+
11
+ [cuda12]
12
+ jax[cuda12]==0.6.0
@@ -10,7 +10,7 @@ license = "Apache-2.0"
10
10
  dynamic = ["version", "dependencies"]
11
11
 
12
12
  [tool.setuptools.packages.find]
13
- include = ["jaxio*"]
13
+ include = ["jaxion*"]
14
14
  exclude = ["paper"]
15
15
 
16
16
  [tool.setuptools.package-data]
@@ -25,7 +25,7 @@ dependencies = {file = ["requirements.txt"]}
25
25
 
26
26
  [project.optional-dependencies]
27
27
  cuda12 = [
28
- "jax[cuda12]==0.5.3",
28
+ "jax[cuda12]==0.6.0",
29
29
  ]
30
30
 
31
31
  [tool.setuptools-git-versioning]
@@ -0,0 +1,9 @@
1
+ jax==0.6.0
2
+ jaxdecomp==0.2.9
3
+ tensorflow
4
+ orbax-checkpoint==0.11.25
5
+ optax==0.2.6
6
+ numpy
7
+ matplotlib
8
+ setuptools>=70.1.1
9
+ chex==0.1.90
@@ -1,3 +0,0 @@
1
- from .simulation import Simulation as Simulation
2
- from .constants import constants as constants
3
- from .analysis import radial_power_spectrum as radial_power_spectrum
@@ -1,11 +0,0 @@
1
- jax==0.5.3
2
- jaxdecomp==0.2.7
3
- tensorflow
4
- orbax-checkpoint==0.11.18
5
- optax==0.2.5
6
- numpy
7
- matplotlib
8
- setuptools>=70.1.1
9
-
10
- [cuda12]
11
- jax[cuda12]==0.5.3
@@ -1,8 +0,0 @@
1
- jax==0.5.3
2
- jaxdecomp==0.2.7
3
- tensorflow
4
- orbax-checkpoint==0.11.18
5
- optax==0.2.5
6
- numpy
7
- matplotlib
8
- setuptools>=70.1.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