Skip to content

GEOPY-2414: Migrate mesh merger to uijson format#78

Merged
domfournier merged 18 commits into
developfrom
GEOPY-2414
Jul 10, 2026
Merged

GEOPY-2414: Migrate mesh merger to uijson format#78
domfournier merged 18 commits into
developfrom
GEOPY-2414

Conversation

@domfournier

@domfournier domfournier commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

GEOPY-2414 - Migrate mesh merger to uijson format

Copilot AI review requested due to automatic review settings July 8, 2026 18:23
@github-actions github-actions Bot changed the title GEOPY-2414 GEOPY-2414: Migrate mesh merger to uijson format Jul 8, 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 migrates/introduces the Grid Model Merger workflow to the UIJSON-based app structure and refactors shared mesh utilities to support grid/model merging and refinement.

Changes:

  • Added a new grid_model_merger app (options, driver, UIJSON) and accompanying run-tests for block model, octree, and mixed merges.
  • Refactored mesh conversion/refinement helpers into grid_apps/utils.py (tensor/block model conversions, TreeMesh refinement helpers, boundary-active-cell detection).
  • Updated existing drivers/tests to use the new utility entry points and adjusted expected outputs where mesh generation behavior changed.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
tests/utils_test.py Updates utility tests to new tensor conversion + boundary-active-cell API.
tests/run_tests/grid_model_merger_test.py Adds end-to-end tests for merging block models, octrees, and mixed grids.
tests/run_tests/block_2_octree_test.py Updates expected cell count due to revised refinement/mesh conversion behavior.
grid_apps/utils.py Introduces/refactors tensor/block model conversion, refinement helpers, and boundary-active-cell detection.
grid_apps/grid_model_merger/options.py Adds options model for UIJSON-driven grid/model selections and discretize conversion.
grid_apps/grid_model_merger/driver.py Adds driver implementing grid merge + weighted interpolation onto an output grid.
grid_apps/grid_model_merger/init.py Adds package init for the new app module.
grid_apps/block_models/driver.py Switches BlockModel creation to shared tensor_to_block_model utility.
grid_apps/block_model_to_octree/driver.py Removes duplicated refinement helpers in favor of shared utils implementations.
grid_apps-assets/uijson/grid_model_merger.ui.json Adds UIJSON definition for the Grid Model Merger app.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread grid_apps/grid_model_merger/options.py
Comment thread grid_apps/grid_model_merger/driver.py
Comment thread grid_apps/utils.py Outdated
Comment thread grid_apps/utils.py Outdated
Comment thread grid_apps/utils.py Outdated
Comment thread grid_apps/grid_model_merger/driver.py Outdated
Comment thread grid_apps/grid_model_merger/driver.py Outdated
Comment thread grid_apps-assets/uijson/grid_model_merger.ui.json Outdated
Comment thread grid_apps/grid_model_merger/options.py
Comment thread grid_apps/grid_model_merger/driver.py
Comment thread grid_apps/grid_model_merger/driver.py Outdated
Comment thread grid_apps/utils.py
benk-mira
benk-mira previously approved these changes Jul 10, 2026
Comment thread grid_apps/utils.py
benk-mira
benk-mira previously approved these changes Jul 10, 2026
benk-mira
benk-mira previously approved these changes Jul 10, 2026
@domfournier
domfournier merged commit 7bc33d1 into develop Jul 10, 2026
18 checks passed
@domfournier
domfournier deleted the GEOPY-2414 branch July 10, 2026 21:52
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.

3 participants