malcolmw / pykonal

Travel-time calculator based on the fast-marching method solution to the Eikonal equation.

Home Page:https://malcolmw.github.io/pykonal-docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

numpy bool issue

SquirrelKnight opened this issue · comments

In newer versions of numpy, np.bool is removed and bool is accepted. I would recommend either adding a specific version of numpy to the installation instructions, or changing constants.pyx so that DTYPE_BOOL = bool

The latest versions of numpy also accept float64, uint32, etc. without needing to prepend np.

Sorry for the delay on this. I changed DTYPE_BOOL=np.bool in constants.pyx to DTYPE_BOOL=np.bool_, and it should work with the latest version of NumPy now. This update is included in the v0.2.3b4: https://github.com/malcolmw/pykonal/releases/tag/0.2.3b4.

Closing this issue now, but please feel free to re-open if the problem persists or any downstream bugs emerge.