kalemaria / pycurv

Reliable estimation of membrane curvature for cryo-electron tomography
GNU Lesser General Public License v3.0
16 stars 6 forks source link

DeprecationWarning: np.float and np.int are deprecated #9

Closed bbarad closed 1 year ago

bbarad commented 1 year ago

Newer versions of numpy don't support calling numpy data types with too low precision - https://numpy.org/doc/stable/release/1.24.0-notes.html#expired-deprecations. Could just pin older numpy versions as a requirement but I think the best approach would be to replace np.int with np.int32 etc where appropriate. I'm happy to prepare a PR to address this.

kalemaria commented 1 year ago

Thank you for fixing this! I assume you have run the tests after the change? ;)