-
Notifications
You must be signed in to change notification settings - Fork 300
Fix scalar as_lazy_data #2878
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 scalar as_lazy_data #2878
Conversation
|
Is it worth adding a test that captures current dask behaviour? That way, when it fails (iris uses a dask release with the fix), it will be obvious to remove the workaround. Or alternatively a known failure test. |
|
@cpelley That makes sense |
| self.assertMaskedArrayEqual(result, a) | ||
|
|
||
| def test_dask_scalar_proxy_pass_through(self): | ||
| # This test will fail when using a version of Dask with |
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.
A little bit naughty (hello future person who is going back and reading this PR).
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.
Hello
| res = ma.masked_array(res.data, mask=res.mask) | ||
| return res | ||
|
|
||
| _getall_delayed = dask.delayed(_getall) |
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.
There is a decorator for this purpose...
This is a workaround for dask/dask#2823 (now fixed on dask/master), identified in #2861.