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

Bug with latest scipy #414

Closed
chrisrichardson opened this issue Jun 25, 2024 · 3 comments
Closed

Bug with latest scipy #414

chrisrichardson opened this issue Jun 25, 2024 · 3 comments

Comments

@chrisrichardson
Copy link

Latest scipy (1.14.0) seems to have removed .H for hermitian adjoint, so I am now getting:

 File "/opt/homebrew/lib/python3.11/site-packages/pyamg/aggregation/aggregation.py", line 394, in _extend_hierarchy
    R = P.H
        ^^^
AttributeError: 'bsr_matrix' object has no attribute 'H'

Maybe use .T.conj() instead of .H?

@lukeolson
Copy link
Member

oh right -- https://docs.scipy.org/doc/scipy/release/1.14.0-notes.html#expired-deprecations

I'm surprised we didn't see the deprecation warnings from this earlier.
I'll start a fix -- there are some other issues with 1.13++ so we'll try to get this out soon.

Thank you!

@jorgensd
Copy link

We are hitting this now on our CI in DOLFINx: https://github.com/FEniCS/dolfinx/actions/runs/9665293737/job/26662040585

@lukeolson
Copy link
Member

@jorgensd @chrisrichardson -- v5.2.1 is up on pypi now and works with the latest scipy

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

No branches or pull requests

3 participants