gryffin icon indicating copy to clipboard operation
gryffin copied to clipboard

Error with numpy 1.24

Open jkitchin opened this issue 1 year ago • 0 comments

This line params = gryffin.recommend(observations=observations)[0] eventually fails with

AttributeError: module 'numpy' has no attribute 'float'

The issue is np.float was deprecated, and removed (https://numpy.org/devdocs/release/1.24.0-notes.html#expired-deprecations).

It works fine with numpy 1.23.5.

A clumsy fix in a script is: np.float = float.

jkitchin avatar Jan 01 '23 16:01 jkitchin