fix dask meta and output_dtypes error - #5449
Conversation
|
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
metaandoutput_dtypes). I'd suggest to follow dask's example here and not add a deprecation cycle. Thoughts?