-
Notifications
You must be signed in to change notification settings - Fork 35
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 TensorMesh.cell_bounds
property
#366
Conversation
Add a new `cell_bounds` property to `TensorMesh` that returns the bounds of each cell in the mesh. This implements a faster way to obtain the bounds of each cell in the mesh than trying to access them through `TensorCell.bounds`.
don't worry too much about updating the CI build stuff at the moment, I've almost got it put back together. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #366 +/- ##
==========================================
+ Coverage 86.06% 86.12% +0.05%
==========================================
Files 90 90
Lines 18478 18494 +16
Branches 2968 2089 -879
==========================================
+ Hits 15904 15928 +24
Misses 1882 1882
+ Partials 692 684 -8 ☔ View full report in Codecov by Sentry. |
Instead of building the nodes from scratch with meshgrid, use the existing `cell_centers` and `h_gridded` properties of the `TensorMesh`.
Co-authored-by: Joseph Capriotti <josephrcapriotti@gmail.com>
@jcapriot I think this is ready. Feel free to merge if you think so. |
Add a new
cell_bounds
property toTensorMesh
that returns the bounds of each cell in the mesh. This implements a faster way to obtain the bounds of each cell in the mesh than trying to access them throughTensorCell.bounds
.