Closed minety closed 1 year ago
Hi @minety! In the latest version of numpy (1.24), aliases like np.int()
were removed. We have almost finished fixing these in the repo, and we are planning to have a new release in the next couple of days, where this issue should be resolved.
Hello,
I have encountered an issue related to the deprecation of
np.int
in NumPy version 1.20 and onwards. When I use your library, it causes an AttributeError in thehexrd.imageseries.omega
module of your codebase.Here is the traceback:
The issue arises when attempting to cast to
numpy.int
for type conversion.numpy.int
has been deprecated in NumPy since version 1.20, because it was merely an alias for the built-in Pythonint
type.A suggested solution would be to replace
np.int
withint
,np.int32
, ornp.int64
depending on the required precision.For example, here's a possible modification for line 185 in
hexrd.imageseries.omega.py
:Could you please take a look at this? Thank you.