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
13 stars 2 forks source link

numpy 2.0 compatibility #27

Closed roth-jakob closed 1 month ago

roth-jakob commented 1 month 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 1 month ago

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