add JAX backend (runs Shima example!) + improve backend/attribute tests coverage + add skip_division_by_m0 to spectrum moments (not yet in ThrustRTC); phase out Python 3.10 and Intel macOS on CI; phase out Storage::__getitem__(); Numpy 2.0 compatibility - #1732
Merged
Conversation
New draft backend class consisting of stripped Numba backend code sufficient to run the tutorial collision example.
Bodzio-2
force-pushed
the
konrad_bodzioch/JAX_Backend
branch
from
February 19, 2026 14:34
17c49ef to
6b93127
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1732 +/- ##
==========================================
+ Coverage 87.07% 87.47% +0.39%
==========================================
Files 420 430 +10
Lines 10751 11158 +407
==========================================
+ Hits 9361 9760 +399
- Misses 1390 1398 +8 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
slayoo
reviewed
Aug 10, 2026
| extensive_attribute_storage, | ||
| extensive_keys, | ||
| ) | ||
| # print(f"{extensive_attribute_storage.data=}") |
slayoo
reviewed
Aug 10, 2026
|
|
||
| ranks = self.backend.Storage.from_ndarray(np.array(ranks, dtype=float)) | ||
|
|
||
| # print("Attr name: " + attr_name) |
slayoo
reviewed
Aug 10, 2026
| timestep=timestep, | ||
| dv=dv, | ||
| ) | ||
| # assert (prob.to_ndarray() > 0.44).all() |
slayoo
reviewed
Aug 10, 2026
|
|
||
| # act | ||
| idx.length = length | ||
| # print(f"{cell_start.data=}") |
slayoo
reviewed
Aug 10, 2026
| ff = self.formulae | ||
|
|
||
| # @jax.jit | ||
| # TODO #1913: fix test fails for this method |
slayoo
reviewed
Aug 10, 2026
| def _boost(obj, fastmath, constants, dimensional_analysis): | ||
| """returns JIT-compiled, `c_inline`-equipped formulae with the constants catalogue attached""" | ||
| """returns JIT-compiled, `c_inline`-equipped formulae with the constants catalogue attached | ||
| additionally, adds `jax` attribute for jax.jit compiling of formulae |
Member
There was a problem hiding this comment.
let's add a basic unit test exemplifying the jax() fun
skip_division_by_m0 to spectrum moments (not yet in ThrustRTC); phase out Python 3.10 and Intel macOS on CI; phase out Storage::__getitem__()skip_division_by_m0 to spectrum moments (not yet in ThrustRTC); phase out Python 3.10 and Intel macOS on CI; phase out Storage::__getitem__(); Numpy 2.0 compatibility
slayoo
approved these changes
Aug 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New draft backend class consisting of stripped Numba backend code sufficient to run the tutorial collision example.