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

Add TensorMesh.cell_bounds property #366

Merged
merged 8 commits into from
Oct 15, 2024
Merged

Add TensorMesh.cell_bounds property #366

merged 8 commits into from
Oct 15, 2024

Conversation

santisoler
Copy link
Member

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.

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`.
@jcapriot
Copy link
Member

don't worry too much about updating the CI build stuff at the moment, I've almost got it put back together.

Copy link

codecov bot commented Sep 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.12%. Comparing base (1ab5e9a) to head (7bd7d1b).
Report is 9 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

santisoler and others added 3 commits September 5, 2024 10:22
Instead of building the nodes from scratch with meshgrid, use the
existing `cell_centers` and `h_gridded` properties of the `TensorMesh`.
discretize/tensor_mesh.py Outdated Show resolved Hide resolved
santisoler and others added 2 commits October 15, 2024 15:07
Co-authored-by: Joseph Capriotti <josephrcapriotti@gmail.com>
@santisoler santisoler marked this pull request as ready for review October 15, 2024 22:10
@santisoler
Copy link
Member Author

@jcapriot I think this is ready. Feel free to merge if you think so.

@jcapriot jcapriot merged commit 87b9300 into main Oct 15, 2024
25 checks passed
@jcapriot jcapriot deleted the tensor-mesh-cell-bounds branch October 15, 2024 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants