-
Notifications
You must be signed in to change notification settings - Fork 17
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
Support building regridders with masks #219
Conversation
Codecov Report
@@ Coverage Diff @@
## main #219 +/- ##
==========================================
+ Coverage 99.19% 99.22% +0.02%
==========================================
Files 28 28
Lines 2871 3095 +224
==========================================
+ Hits 2848 3071 +223
- Misses 23 24 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@SciTools-incubator/esmf-regrid-devs This pull-request is stale due to a lack of activity in the last 90 days. Remove stale label or comment, otherwise this pull-request will close automatically in 7 days time. |
@Scit@SciTools-incubator/esmf-regrid-devs This stale pull-request has been automatically closed due to no community activity |
2f8132f
to
b697534
Compare
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.
I'm not quite done reviewing yet, but I wanted to give you some things to work on so you're not waiting on me.
Great idea!
esmf_regrid/tests/unit/experimental/unstructured_scheme/test_GridToMeshESMFRegridder.py
Outdated
Show resolved
Hide resolved
esmf_regrid/tests/unit/experimental/unstructured_scheme/test_MeshToGridESMFRegridder.py
Outdated
Show resolved
Hide resolved
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.
Here's the rest of my review.
Is there merit in replacing NumPy operations on the masks with Dask Array operations? Some Cube
masks can be very large.
Apologies, I know I can get a bit evangelical about D.R.Y. code, but do I feel this PR makes a very strong case for more effort in this space. I believe I have the second-most experience with this codebase, but all the layers and parallel changes made me get quite lost during review. I'm also going to find it difficult to confirm which of my suggestions have been actioned, as the action will need to be mirrored in an uncertain number of places. Also, if I wanted to make an enhancement like this, I doubt I would be successful in remembering all the different places a change needed to be made. D.R.Y. takes longer to get working, and I appreciate that's work that could otherwise be spent on new features, but it makes future work quicker, easier and less error-prone. This is all doubly true when it comes to developers who are not the original author. I'm basically describing Technical Debt. I know there are already some ideas in the pipeline (#198); take this as my vote for expediting that as well as going further; let's pay off that debt sooner before we pay much more Interest 👍. Cc @pp-mo as the buddy for iris-esmf-regrid. |
52ddfc2
to
ed88083
Compare
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Co-authored-by: Martin Yeo <40734014+trexfeathers@users.noreply.github.com>
564e07c
to
4287b5f
Compare
just plopping myself here to say hi and good work on this, guys! Looking forward to see this and the other features, including the handling of the new esmpy in an upcoming release 🍻 |
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.
Looking good... here are my new comments.
Co-authored-by: Martin Yeo <40734014+trexfeathers@users.noreply.github.com>
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.
This should have a CHANGELOG
entry:
I've decided to add an entry for #241 while I was there. |
Addresses #218 by having ESMF ignore masked points.
TODO
Consider a way to derive masks directly from discontiguities in coordinates.