Skip to content

dask: Field.cumsum#461

Merged
davidhassell merged 2 commits into
NCAS-CMS:lama-to-daskfrom
davidhassell:dask-field-cumsum
Oct 28, 2022
Merged

dask: Field.cumsum#461
davidhassell merged 2 commits into
NCAS-CMS:lama-to-daskfrom
davidhassell:dask-field-cumsum

Conversation

@davidhassell
Copy link
Copy Markdown
Collaborator

API changes:

  • masked_as_zero parameter deprecated (see dask: Dask cumsum #343 for details)
  • coordinate parameter deprecated. This is because it was always flaky, and I didn't want to make the effort to daskify dodgy code that will be going anyway. It is flaky because it allowed non-CF compliant dimension coordinates to be created automatically. Specifically, the moving of the coordinate coordinate values could result in non strictly monotonic values, because the bounds do not have to follow this restriction.

@davidhassell davidhassell added the dask Relating to the use of Dask label Oct 10, 2022
@davidhassell davidhassell changed the title dask: Field cumsum dask: Field.cumsum Oct 10, 2022
Copy link
Copy Markdown
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 overall, with the test method in question now passing, having been adapted and extended in a sensible way. I have raised one question and one comment, but please merge when ready.

This is because it was always flaky

Shhhhh, that can be our secret now!

Comment thread cf/test/test_Field.py
Comment thread cf/test/test_Field.py
Copy link
Copy Markdown
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.

Good to go now in my eyes, so please merge when ready.

@davidhassell davidhassell merged commit a6982ea into NCAS-CMS:lama-to-dask Oct 28, 2022
@davidhassell davidhassell deleted the dask-field-cumsum branch November 15, 2022 09:29
@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