np.float is deprecated, and throws an error since Numpy 1.24, see
https://numpy.org/devdocs/release/1.24.0-notes.html
I replaced them by np.float64.