LBL-EESA / fastkde

Other
50 stars 10 forks source link

Numpy 1.24 removes support for type aliases #13

Closed willsthompson closed 1 year ago

willsthompson commented 1 year ago

Numpy 1.24 removes support for type aliases used in fastkde (deprecation began in 1.20)

The deprecation for the aliases np.object, np.bool, np.float, np.complex, np.str, and np.int is expired (introduces NumPy 1.20). Some of these will now give a FutureWarning in addition to raising an error since they will be mapped to the NumPy scalars in the future.

Usage now raises an AttributeError.

taobrienlbl commented 1 year ago

@willsthompson - PR #12 fixes this issue, and a new release has been published to pypi. Doing pip install fastkde --upgrade should bring you up to date. Does that fix the issue?

willsthompson commented 1 year ago

@taobrienlbl yes, it does! Thank you for getting this fix out so quickly!

taobrienlbl commented 1 year ago

great, glad to hear, and that was thanks to @al-jshen for submitting the PR!