xmos / lib_xcore_math

XMOS optimised arithmetic and vector processing library
Other
6 stars 14 forks source link

xmath_script.py should change the deprecated np.float to float or np.float64 #139

Closed QuinnWang closed 10 months ago

QuinnWang commented 1 year ago

For example: https://github.com/xmos/lib_xcore_math/blob/e34d8dbfb67490885c023b38cfffa4b1cb8d4041/lib_xcore_math/script/xmath_script.py#L38

With the latest numpy, it reports the error 'numpy' has no attribute 'float', the reason is xmath_script.py has the deprecated np.float

Refer to https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations, should change to use float or np.float64, either can solve the script running problem

uvvpavel commented 10 months ago

Hi @QuinnWang, The issue has been fixed with the recent push to develop. Thank you for your report ✨