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

dask: Data.__contains__ #320

Merged
merged 6 commits into from
Mar 2, 2022

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!).

cf/data/data.py Outdated Show resolved Hide resolved
cf/data/data.py Outdated Show resolved Hide resolved
cf/data/data.py Outdated Show resolved Hide resolved
davidhassell and others added 2 commits February 16, 2022 08:30
Co-authored-by: Sadie L. Bartholomew <[email protected]>
Co-authored-by: Sadie L. Bartholomew <[email protected]>
@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.

None yet

2 participants