pints-team / pints

Probabilistic Inference on Noisy Time Series
http://pints.readthedocs.io
Other
225 stars 33 forks source link

Updates for numpy 2 compatibility #1531

Closed MichaelClerx closed 2 months ago

MichaelClerx commented 3 months ago
  1. Not many changes in PINTS luckily, just replacing a np.array(x, copy=False) with np.asarray(x)
  2. Remaining errors are in pycma. These are already fixed in development but we'll need to wait for a new release.
codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (3f2f153) to head (f5f1a37).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1531 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 97 97 Lines 9693 9693 ========================================= Hits 9693 9693 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

MichaelClerx commented 3 months ago

Fixes #1530

MichaelClerx commented 3 months ago

The cma issue is also what's breaking the notebook tests right now

nikohansen commented 2 months ago

I just released the latest pycma 3.4.0 which is compatible with numpy 2.0.

MichaelClerx commented 2 months ago

Thanks @nikohansen !

MichaelClerx commented 2 months ago

In the meantime, a scipy update remove cumtrapz which had been deprecated, so fixed that too. ~It means the test that used this function now requires scipy 1.12, released Jan 2024~ Updated it to work with old and new.