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

Can't access values of Measurement as property when dask>=2024.11.0 #1656

Open
emmaai opened this issue Nov 12, 2024 · 3 comments
Open

Can't access values of Measurement as property when dask>=2024.11.0 #1656

emmaai opened this issue Nov 12, 2024 · 3 comments

Comments

@emmaai
Copy link
Contributor

emmaai commented Nov 12, 2024

Expected behaviour

Measurement values can be access as property e.g., by measurement.dtype.
The symptom is that somehow (and somewhere) Measurement is casted back to parent class dict instead of datacube.model.Measurement. Logging parameter type(measurement) in fuse_lazy shows the different classes information between dask==2024.10.0 and dask==2024.11.0

Actual behaviour

Emit error when compute

Exception: 'AttributeError("\'dict\' object has no attribute \'nodata\'")'
Traceback: '  File "/env/lib/python3.10/site-packages/datacube/api/core.py", line 946, in fuse_lazy\n    print(f\'measurement nodata {measurement.nodata}\')\n'

Steps to reproduce the behaviour

Loading multiple scenes with groupby="solar_day"

Environment information

  • Which datacube --version are you using?
    1.8.19
  • What datacube deployment/enviornment are you running against?
    sandbox

Note: Stale issues will be automatically closed after a period of six months with no activity.
To ensure critical issues are not closed, tag them with the Github pinned tag.
If you are a community member and not a maintainer please escalate this issue to maintainers via
GIS StackExchange or Discord.

@emmaai
Copy link
Contributor Author

emmaai commented Nov 13, 2024

tag the issue for tracking dask/distributed#8932

@omad
Copy link
Member

omad commented Nov 14, 2024

Thanks Emma. Love the reproducible example you posted in the dask issue!

@omad
Copy link
Member

omad commented Nov 14, 2024

And then I promptly forgot, and spent far too much time today wondering why datacube-core storage test cases were failing for me! 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants