Skip to content

NumPy ≥ 1.20 compatibility issue: np.object deprecated #2

@xyshentu

Description

@xyshentu

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.object was a deprecated alias for the builtin object. To avoid this error in existing code, use object by 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions