scaleogram
scaleogram copied to clipboard
np.int is deprecated
Hi, just to let you know that when computing the CWT I found the following issue in scaleogram/wfun.py , which is due to the fact that numpy.int is deprecated.
File ~/.local/lib/python3.11/site-packages/scaleogram/wfun.py:188, in fastcwt.
File /data01/shared/EnvPy3.11/lib/python3.11/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))
AttributeError: module 'numpy' has no attribute 'int'
I actually fixed that issue a while ago, and offered it as a PR to the library author (@alsauve) in January. It doesn't seem like it's going to be merged anytime soon, though.
If it bothers you, you can build the fixed version from the PR branch here: https://github.com/EricCreusen/scaleogram