Skip to content

refactor: dedupe the StructuredGrid results container and rename it PropertyGrid - #363

Merged
lachlangrose merged 2 commits into
masterfrom
refactor/dedupe-structured-grid
Nov 1, 2026
Merged

lachlangrose merged 2 commits into
masterfrom
refactor/dedupe-structured-grid

Conversation

@lachlangrose

Copy link
Copy Markdown
Member

Summary

  • `LoopStructural.geometry` carried a copy of `loop_common.geometry.StructuredGrid` (the only differences were the logger import and fuller docstrings). It now re-exports the `loop_common` class, which has the merged docstrings.
  • The class is renamed `PropertyGrid`: it is a results container (`properties` / `cell_properties`, `vtk`, `save`), not the interpolation support `loop_common.supports.StructuredGrid`. `StructuredGrid` stays as an alias in both packages, so existing imports and pickles keep working. The old private path `LoopStructural.geometry._structured_grid` still resolves.
  • The exporter and feature code use `PropertyGrid`. `COMPAT.md` has a migration-notice entry.

Not in this PR: changing the return type of `BoundingBox.structured_grid()` (it still returns the support class). That is planned as a follow-up.

Testing

  • `pytest tests`: 730 passed, 6 skipped
  • `pytest packages/loop_common/tests`: 156 passed
  • ruff: no new findings in the changed files (161 existing findings in the tree are untouched)
  • Not run: `packages/loop_interpolation` tests

🤖 Generated with Claude Code

lachlangrose and others added 2 commits November 1, 2026 17:24
…ropertyGrid

LoopStructural.geometry carried a copy of loop_common.geometry.StructuredGrid.
Keep one class in loop_common (with the fuller docstrings), re-export it from
LoopStructural.geometry, and rename it PropertyGrid because it is a result
container, not the interpolation support loop_common.supports.StructuredGrid.
StructuredGrid stays as an alias, so existing imports and pickles keep working.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@lachlangrose
lachlangrose force-pushed the refactor/dedupe-structured-grid branch from a98a378 to 86bb5bd Compare November 1, 2026 06:54
@lachlangrose
lachlangrose merged commit 3777d23 into master Nov 1, 2026
36 of 37 checks passed
@lachlangrose
lachlangrose deleted the refactor/dedupe-structured-grid branch November 1, 2026 06:54
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.

1 participant