-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add Inverse Face Indices to Subsetted Grids #1122
Conversation
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.
Initial implementation looks good; a few design considerations.
May you include this in the |
Sure. Would that be a different attribute or stored in the same inverse indices? |
Should be the same parameter for consistency, stored within the |
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.
Accidently approved in the previous review, please disregard.
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.
Please include a test that directly uses Grid.isel()
. Docstrings need to be updated to describe the inverse_indices
parameter.
…XARRAY/uxarray into zedwick/subset_inverse_indices
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.
Nice work.
There are a few instances where you refer to "face indices" as "face centers".
Can you make sure that we refer to the indices as "node", "edge" and "face" instead of reffering to them as "node center", "edge center", or "face center"
Seems to work, still parsing the code, in the meantime - it'd be good to add or extend one of the examples in subset.ipynb |
Yeah, this had crossed my mind as well. |
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
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.
Great work @aaronzedwick !
Three small comments, otherwise all looks fantastic.
Co-authored-by: Philip Chmielowiec <67855069+philipc2@users.noreply.github.com>
…XARRAY/uxarray into zedwick/subset_inverse_indices
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.
Nice work!
Closes #1114
Overview
Expected Usage
PR Checklist
General
Testing
Documentation
_
) and have been added todocs/internal_api/index.rst
docs/user_api/index.rst