Skip to content

Conversation

@davidhassell
Copy link
Collaborator

Data.__contains__ was already daskified, but the unit test was being skipped. This PR re-instates the unit test, and takes an opportunity to improve the code (notable adding some short circuits).

Copy link
Member

@sadielbartholomew sadielbartholomew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good, with nice improvements to the test and docstring examples, though one of the new short circuiting cases left me pondering the scope and nature of __contains__ with cf and numpy, so please see my longer in-line comment in case it might elicit some changes, minor or otherwise (after you return from leave of course!).

davidhassell and others added 2 commits February 16, 2022 08:30
Co-authored-by: Sadie L. Bartholomew <sadie.bartholomew@ncas.ac.uk>
Co-authored-by: Sadie L. Bartholomew <sadie.bartholomew@ncas.ac.uk>
@davidhassell davidhassell changed the title dask: Dask.__contains__ dask: Data.__contains__ Mar 1, 2022
@davidhassell davidhassell merged commit f130048 into NCAS-CMS:lama-to-dask Mar 2, 2022
@davidhassell davidhassell deleted the dask-contains branch November 15, 2022 09:16
@davidhassell davidhassell added this to the 3.14.0 milestone Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dask Relating to the use of Dask

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants