MIT-LCP / wfdb-python

Native Python WFDB package
MIT License
738 stars 300 forks source link

error when running processing.ann2rr #453

Closed BarAbba39 closed 1 year ago

BarAbba39 commented 1 year ago

228 out_interval = time_interval / (60 60) 229 else: --> 230 out_interval = np.around(time_interval ann.fs).astype(np.int) 232 if as_array: 233 return out_interval

File ---/venv/lib/python3.10/site-packages/numpy/init.py:284, in getattr(attr) 281 from .testing import Tester 282 return Tester --> 284 raise AttributeError("module {!r} has no attribute " 285 "{!r}".format(name, attr))

error: np has no attribute np.int

np.int was deprecated in 2021

tompollard commented 1 year ago

This issue should be fixed in Version 4.1.2, now available on PyPI.

Please update your installation with:

pip install wfdb --upgrade