Skip to content

Conversation

@dhomeier
Copy link

@dhomeier dhomeier commented May 8, 2025

This package has not seen much work in a number of years, but still seems to work stably with recent scipy and numpy versions, including numpy 2.x since a compatible autograd version was released!
There are some issues as e.g. conda-forge has this flagged as only compatible with numpy<2.0a0 (conda-forge/oktopus-feedstock#2), and running the tests locally (all doctests afaics) fails on a number of changes in no. of significant digits, representation as np.float64(x) etc., most of them however already fail with numpy 1.25.0, and some even as far back as 1.16.5, the oldest version supported for Python 3.8.
Couple of minor changes here tested to pass with numpy 1.16.5-2.2.5 on macOS/x86_64. Maybe using round to reduce the number of printed digits would be more robust on different platforms, also np.printoptions(legacy='1.25') might be an alternative to get rid of the np.float64() (cf. also scientific-python/pytest-doctestplus#210), but the print() statements perhaps do not look too intrusive in the docs.
Also could perhaps live with the doctests not passing on 32 bit.

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.

1 participant