-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix dask meta and output_dtypes error #5449
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mathause
thanks for the review - let's merge soon |
Thanks @mathause ! |
Apologies for the breaking change. I'm happy to make sure we ping an Xarray dev next time we have a significant change to |
@mathause sorry for breaking things here. Note that passing Also I think maybe this test should be changed rather than skipped. Saying |
IIRC xarray doesn't actually use it. @kmuehlbauer added that test so maybe he can provide more context
OK good point! There are a few tests for |
No worries. I agree that only allowing one is cleaner. And definitively +1 on adding tests using meta. |
Thanks for the ping @dcherian. There is this test: xarray/xarray/tests/test_computation.py Lines 1314 to 1330 in da0489f
dtype in meta . Maybe these different tests have to be aligned/combined? Unfortunately memory gets hazy over time, so I can't say much more about it without a deeper dive into.
|
This was changed in dask/dask#7669. Looks like they did not deprecate this behavior (i.e. passing both
meta
andoutput_dtypes
). I'd suggest to follow dask's example here and not add a deprecation cycle. Thoughts?