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

Numpy 2.x compatibility #1831

Open
greschd opened this issue Oct 23, 2024 · 0 comments
Open

Numpy 2.x compatibility #1831

greschd opened this issue Oct 23, 2024 · 0 comments
Labels
dependencies Related to package requirements question Further information is requested

Comments

@greschd
Copy link
Member

greschd commented Oct 23, 2024

What is the status of PyDPF w.r.t. compatibility with the numpy 2.x release? I have noticed that it is declared as numpy<2, but don't know whether there is a known incompatibility, or it is simply a conservative dependency declaration.

The reason I stumbled upon this is that the poetry dependency solver in PyACP (which does not restrict numpy):

  • upgraded numpy to 2.x
  • downgraded DPF core to 0.12.2, which does not limit numpy (but presumably isn't any more compatible)

By forcing ansys-dpf-core>=0.13, I could get it to pick the older numpy and newer DPF instead.

@greschd greschd added question Further information is requested dependencies Related to package requirements labels Oct 23, 2024
greschd added a commit to ansys/pyacp that referenced this issue Oct 25, 2024
Update the `ansys-api-acp` version to `0.2.0`.

Also update the minimum version of DPF Core, DPF Composites, and PyMechanical. These
are used only in the examples, so the lower bound can be updated without breaking compatibility.

The `ansys-dpf-core` dependency in particular was updated because otherwise it would downgrade
to a version that doesn't limit the numpy upper version, see ansys/pydpf-core#1831
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Related to package requirements question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant