Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration to Autoray Backend #3

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open

Conversation

Microno95
Copy link
Owner

Unlike the current implementation where the backend is fixed at startup and restricts the user to specific float formats and runtime backends, this PR implements the autoray backend for a more flexible runtime where the given arrays determine the data format and the backend.

As a result, this should enable integration of other backends such as jax and other array libraries which support a numpy-like interface.

@Microno95 Microno95 force-pushed the feature/autoray-backend branch from b4e4e20 to 1483a3e Compare February 10, 2025 13:09
@codecov-commenter
Copy link

codecov-commenter commented Feb 10, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 88.14815% with 112 lines in your changes missing coverage. Please review.

Project coverage is 88.26%. Comparing base (54cba57) to head (1a9570e).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
desolver/utilities/optimizer.py 89.31% 25 Missing and 11 partials ⚠️
desolver/differential_system.py 79.24% 21 Missing and 12 partials ⚠️
desolver/integrators/integrator_types.py 87.86% 16 Missing and 5 partials ⚠️
desolver/backend/autoray_backend.py 74.19% 4 Missing and 4 partials ⚠️
desolver/utilities/utilities.py 90.19% 2 Missing and 3 partials ⚠️
desolver/integrators/utilities.py 81.81% 2 Missing and 2 partials ⚠️
...solver/integrators/implicit_integration_schemes.py 92.68% 3 Missing ⚠️
desolver/integrators/integrator_template.py 90.90% 2 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master       #3      +/-   ##
==========================================
+ Coverage   83.37%   88.26%   +4.89%     
==========================================
  Files          33       22      -11     
  Lines        4973     2198    -2775     
  Branches      541      314     -227     
==========================================
- Hits         4146     1940    -2206     
+ Misses        717      172     -545     
+ Partials      110       86      -24     
Flag Coverage Δ
pr-tests- ?
pr-tests-feature/autoray-backend 88.26% <88.14%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants