-
Notifications
You must be signed in to change notification settings - Fork 3
NumPy ≥ 1.20 compatibility issue: np.object deprecated #2
Description
Hi,
This change in NumPy ≥ 1.20 has caused issues in diopy.output.py and diopy.input.py.
When using these modules, the following error occurs:
np.objectwas a deprecated alias for the builtinobject. To avoid this error in existing code, useobjectby itself. Doing this will not modify any behavior and is safe.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
I have tested the write_h5() function and found that replacing np.object with object in diopy.output.py resolves the issue.
If this package is still being maintained, would you consider applying this change? This would ensure compatibility with newer versions of NumPy.
Thank you for your time and consideration.
Best wishes!