Probe-Particle / ppafm

Classical force field model for simulating atomic force microscopy images.
MIT License
50 stars 19 forks source link

Compatibility with Numpy 2.0 #286

Closed NikoOinonen closed 4 months ago

NikoOinonen commented 4 months ago

Numpy has a new major release: https://numpy.org/devdocs/release/2.0.0-notes.html. This brings some backwards incompatible changes, and the automated tests are currently failing because we use some of the things that got deprecated: https://github.com/Probe-Particle/ppafm/actions/runs/9752430820/job/26915900024?pr=285.

NikoOinonen commented 4 months ago

I fixed the problems I could find on our end here: https://github.com/Probe-Particle/ppafm/compare/main...np2-fix. However, it looks like reikna which we use for FFT calculations in the OpenCL code is also broken with the new release of Numpy. I raised an issue with them at https://github.com/fjarri/reikna/issues/68.

NikoOinonen commented 4 months ago

Reikna now has a new release that fixes the above issue.

NikoOinonen commented 3 months ago

Fix now released in 0.3.2: https://github.com/Probe-Particle/ppafm/releases/tag/v0.3.2.