NIFTy-PPL / NIFTy

Probabilistic programming framework for signal inference algorithms that operate regardless of the underlying grids and their resolutions
https://ift.pages.mpcdf.de/nifty/index.html
GNU General Public License v3.0
21 stars 3 forks source link

numpy 2.0 compatibility #27

Closed roth-jakob closed 5 months ago

roth-jakob commented 5 months ago

Numpy 2.0 was released. At a few places in Nifty, we use np.asfarray, which was removed with Numpy 2.0. Now, one should use np.asarray and specify a dtype.

roth-jakob commented 5 months ago

Ah, sorry, I didn't have the latest commits from nifty8. It's already fixed.