Conversation
…properly isolates public and private methods.
|
/blossom-ci |
Greptile SummaryThis PR migrates the Mesh caching mechanism from storing cached computed values (centroids, areas, normals, curvatures) inside
Important Files Changed
Last reviewed commit: 877eec1 |
Additional Comments (1)
This docstring still says "TensorDict with cache already stripped", but cache is no longer stored in |
coreyjadams
left a comment
There was a problem hiding this comment.
I think this caching mechanism is significantly cleaner, easier to maintain, and less error prone than the previous version. Nice!
|
/blossom-ci |
|
/blossom-ci |
PhysicsNeMo Pull Request
Description
Switches from
Mesh.point_data["_cache"]subkey to a proper dedicatedMesh._cacheTensorDict. This properly isolates public and private methods, and greatly simplifies downstream callers - now, they no longer need to filter out.exclude(CACHE_KEY)at point of use, sincepoint_dataandcell_dataare "pure" user-supplied data.For reviewers: the main change to review is in the main
Meshdata structure in./physicsnemo/mesh/mesh.py; everything else is just a downstream change of that.Checklist
Dependencies
Review Process
All PRs are reviewed by the PhysicsNeMo team before merging.
Depending on which files are changed, GitHub may automatically assign a maintainer for review.
We are also testing AI-based code review tools (e.g., Greptile), which may add automated comments with a confidence score.
This score reflects the AI’s assessment of merge readiness and is not a qualitative judgment of your work, nor is
it an indication that the PR will be accepted / rejected.
AI-generated feedback should be reviewed critically for usefulness.
You are not required to respond to every AI comment, but they are intended to help both authors and reviewers.
Please react to Greptile comments with 👍 or 👎 to provide feedback on their accuracy.