Skip to content

GEOPY-2919#72

Merged
domfournier merged 4 commits into
developfrom
GEOPY-2919
Jun 23, 2026
Merged

GEOPY-2919#72
domfournier merged 4 commits into
developfrom
GEOPY-2919

Conversation

@domfournier

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 19, 2026 22:05

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 improves octree refinement parameter handling when building OctreeOptions from UI JSON by avoiding propagation of None values for optional refinement fields, allowing RefinementOptions defaults to apply cleanly. It also adds a regression test to cover this UI JSON → params path.

Changes:

  • Update collect_refinements_from_dict to omit refinement fields whose UI-derived values are None, while still detecting inactive refinements correctly.
  • Add a test that reads the default octree UI JSON, sets minimal refinement inputs, and validates that refinements are created successfully.
  • Ignore a local developer batch file (devtools/conda_env_pylint.bat) via .gitignore.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
tests/run_tests/octree_creation/params_test.py Adds coverage for building OctreeOptions from UI JSON with a refinement object set.
grid_apps/octree_creation/options.py Ensures refinement dicts don’t include None values so model defaults apply and parsing is more robust.
.gitignore Ignores a local devtools batch file.

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

@domfournier domfournier merged commit 2bbe0bb into develop Jun 23, 2026
19 checks passed
@domfournier domfournier deleted the GEOPY-2919 branch June 23, 2026 20:21
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