Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading WOFS from the datacube uses np.bool which is not compatible with recent versions of numpy #1079

Closed
SamKDawsonDPE opened this issue Jun 19, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@SamKDawsonDPE
Copy link

Describe the bug/issue
When loading WOFS data Datacube.load uses np.bool, which is deprecated in newer version of numpy and therefore loading WOFS data produces an error.

Steps to reproduce
Steps to reproduce the behaviour:
Load WOFS data using the recommended steps:
wo = dc.load(product='ga_ls_wo_3',
group_by='solar_day',
fuse_func=wofs_fuser,
like=MyData)

Expected behaviour
An error that has the end description of:

AttributeError: module 'numpy' has no attribute 'bool'.
`np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
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

Environment information
DEA Sandbox (https://docs.dea.ga.gov.au/setup/sandbox.html)

@SamKDawsonDPE SamKDawsonDPE added the bug Something isn't working label Jun 19, 2023
@robbibt
Copy link
Member

robbibt commented Jun 20, 2023

Closed by #1081

@robbibt robbibt closed this as completed Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants