Skip to content

Update numpy and sksparse changes - #124

Merged
ralberd merged 3 commits into
sandialabs:mainfrom
btalamini:update_numpy_and_sksparse_changes
Sep 21, 2026
Merged

ralberd merged 3 commits into
sandialabs:mainfrom
btalamini:update_numpy_and_sksparse_changes

Conversation

@btalamini

@btalamini btalamini commented Sep 19, 2026 •

Copy link
Copy Markdown
Collaborator

Scikit sparse made API changes in v0.5. This keeps optimism up to date and building/running correctly out of the box. Also fixed failures due to small difference in behavior of numpy: roots of Legendre polynomial derivatives (used for locating quadrature points) are now reported as complex numbers with null imaginary parts, instead of reals. I adapted the code to this.

Numpy now returns complex numbers with 0 imaginary parts. Take
real part to avoid problem. I'm not worried about speed here because
this is only done once at the beginning of the simulation.
We're getting 14 significant figures correct.
@codecov

codecov Bot commented Sep 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.19%. Comparing base (44438c1) to head (e5e6677).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #124      +/-   ##
==========================================
+ Coverage   76.11%   76.19%   +0.07%     
==========================================
  Files          67       67              
  Lines        5840     5830      -10     
==========================================
- Hits         4445     4442       -3     
+ Misses       1395     1388       -7     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ralberd
ralberd merged commit aaa22a1 into sandialabs:main Sep 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants