qurator-spk / eynollah

Document Layout Analysis
Apache License 2.0
340 stars 29 forks source link

Support numpy version 1.24.x #115

Closed cneud closed 1 year ago

cneud commented 1 year ago

numpy version 1.24.0 had several deprecations expire which breaks our codebase. We need to update our code to adapt for the expirations.

See also here: https://numpy.org/devdocs/release/1.24.0-notes.html#expired-deprecations

cneud commented 1 year ago

@vahidrezanezhad I believe the main code change required from us is relating to this

The deprecation for the aliases np.object, np.bool, np.float, np.complex, np.str, and np.int is expired (introduced in NumPy 1.20). Some of these will now give a FutureWarning in addition to raising an error since they will be mapped to the NumPy scalars in the future.