Skip to content

GEOPY-2965: Import tree_levels from grid-apps - #89

Open
domfournier wants to merge 1 commit into
feature/uijsonfrom
GEOPY-2965
Open

GEOPY-2965: Import tree_levels from grid-apps#89
domfournier wants to merge 1 commit into
feature/uijsonfrom
GEOPY-2965

Conversation

@domfournier

@domfournier domfournier commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

GEOPY-2965 - Import tree_levels from grid-apps

Copilot AI lite review requested due to automatic review settings August 21, 2026 18:35
@github-actions github-actions Bot changed the title GEOPY-2965 GEOPY-2965: Import tree_levels from grid-apps Aug 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extracts the Octree→TreeMesh “level index” computation into a reusable tree_levels helper and updates octree_2_treemesh to use it, aligning level computation with other Octree-handling code in utils.py.

Changes:

  • Replaced inline Octree level calculation inside octree_2_treemesh with a call to the new tree_levels(mesh) helper.
  • Added tree_levels(mesh: Octree) to compute TreeMesh-level indices from mesh.octree_cells["NCells"].
  • Minor cleanup in cell-size array construction (np.full instead of np.ones(...) * value).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread grid_apps/utils.py
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