Skip to content

GEOPY-2731#213

Open
domfournier wants to merge 40 commits into
developfrom
GEOPY-2731
Open

GEOPY-2731#213
domfournier wants to merge 40 commits into
developfrom
GEOPY-2731

Conversation

@domfournier

Copy link
Copy Markdown
Contributor

No description provided.

domfournier and others added 30 commits March 23, 2026 10:52
# Conflicts:
#	geoapps_utils/base.py
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
GEOPY-2739: Accept BaseUIJson in the start of driver
Copilot AI review requested due to automatic review settings July 16, 2026 18:37
@domfournier domfournier changed the title Geopy 2731 GEOPY-2731 Jul 16, 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 geoapps-utils away from geoh5py.ui_json.InputFile toward the newer geoh5py.ui_json.UIJson API, updating the core driver startup flow, UIJson/group execution utilities, parameter sweep generation/driver logic, and the test suite to match the new serialization and file-writing behavior.

Changes:

  • Replace InputFile usage with UIJson in runtime code paths (Driver.start, run_uijson_group, ui.json copying, param sweep generation/execution).
  • Remove the legacy BaseParams implementation and update tests to validate the new UIJson-based behavior.
  • Update the base UI JSON template and adjust dependency pinning/lock files for the updated geoh5py API.

Reviewed changes

Copilot reviewed 28 out of 28 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tests/uijson_run_test.py Refactors tests to use a shared uijson_path fixture and new output naming.
tests/param_sweeps/generate_test.py Updates test to serialize via options.ui_json.
tests/param_sweeps/driver_test.py Updates test to serialize via options.ui_json.
tests/dataclass_test.py Adjusts assertions and updates writing via params.ui_json.write(...).
tests/conftest.py Introduces uijson_path fixture and updates test driver/options scaffolding.
tests/base_test.py Aligns tests to UIJson serialization and new default-ui-json behavior.
pyproject.toml Switches geoh5py dependency rev to feature/uijson.
geoapps_utils/run.py Updates out-group execution and ui.json copying to use UIJson.
geoapps_utils/param_sweeps/generate.py Reworks sweep-file generation around UIJson + base template.
geoapps_utils/param_sweeps/driver.py Updates sweep driver to read/write UIJson and close workspace before copying.
geoapps_utils/driver/params.py Removes legacy BaseParams implementation.
geoapps_utils/base.py Updates Driver and Options to use UIJson as the primary representation.
geoapps_utils-assets/uijson/base.ui.json Expands out_group into a full form object.
environments/py-3.14-win-64.conda.lock.yml Refreshes locked dependency set for new geoh5py rev.
environments/py-3.14-win-64-dev.conda.lock.yml Refreshes locked dependency set for new geoh5py rev.
environments/py-3.14-linux-64.conda.lock.yml Refreshes locked dependency set for new geoh5py rev.
environments/py-3.14-linux-64-dev.conda.lock.yml Refreshes locked dependency set for new geoh5py rev.
environments/py-3.13-win-64.conda.lock.yml Refreshes locked dependency set for new geoh5py rev.
environments/py-3.13-win-64-dev.conda.lock.yml Refreshes locked dependency set for new geoh5py rev.
environments/py-3.13-linux-64.conda.lock.yml Refreshes locked dependency set for new geoh5py rev.
environments/py-3.13-linux-64-dev.conda.lock.yml Refreshes locked dependency set for new geoh5py rev.
environments/py-3.12-win-64.conda.lock.yml Refreshes locked dependency set for new geoh5py rev.
environments/py-3.12-win-64-dev.conda.lock.yml Refreshes locked dependency set for new geoh5py rev.
environments/py-3.12-linux-64.conda.lock.yml Refreshes locked dependency set for new geoh5py rev.
environments/py-3.12-linux-64-dev.conda.lock.yml Refreshes locked dependency set for new geoh5py rev.

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

Comment thread geoapps_utils/base.py Outdated
Comment thread geoapps_utils/run.py
Comment thread tests/uijson_run_test.py Outdated
Comment thread pyproject.toml Outdated
# Conflicts:
#	environments/py-3.12-linux-64-dev.conda.lock.yml
#	environments/py-3.12-linux-64.conda.lock.yml
#	environments/py-3.12-win-64-dev.conda.lock.yml
#	environments/py-3.12-win-64.conda.lock.yml
#	environments/py-3.13-linux-64-dev.conda.lock.yml
#	environments/py-3.13-linux-64.conda.lock.yml
#	environments/py-3.13-win-64-dev.conda.lock.yml
#	environments/py-3.13-win-64.conda.lock.yml
#	environments/py-3.14-linux-64-dev.conda.lock.yml
#	environments/py-3.14-linux-64.conda.lock.yml
#	environments/py-3.14-win-64-dev.conda.lock.yml
#	environments/py-3.14-win-64.conda.lock.yml
#	geoapps_utils/driver/params.py
#	py-3.12.conda-lock.yml
#	py-3.13.conda-lock.yml
#	py-3.14.conda-lock.yml
#	pyproject.toml
#	tests/base_test.py
#	tests/dataclass_test.py
@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 79.54545% with 27 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.12%. Comparing base (2deafcc) to head (bba9c35).

Files with missing lines Patch % Lines
geoapps_utils/base.py 72.72% 17 Missing and 4 partials ⚠️
geoapps_utils/run.py 86.48% 2 Missing and 3 partials ⚠️
geoapps_utils/param_sweeps/generate.py 91.66% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #213      +/-   ##
===========================================
- Coverage    85.95%   84.12%   -1.83%     
===========================================
  Files           19       18       -1     
  Lines         1196      945     -251     
  Branches       155      123      -32     
===========================================
- Hits          1028      795     -233     
+ Misses         127      113      -14     
+ Partials        41       37       -4     
Files with missing lines Coverage Δ
geoapps_utils/param_sweeps/driver.py 81.60% <100.00%> (-0.21%) ⬇️
geoapps_utils/param_sweeps/generate.py 78.94% <91.66%> (+4.58%) ⬆️
geoapps_utils/run.py 88.34% <86.48%> (-4.25%) ⬇️
geoapps_utils/base.py 76.50% <72.72%> (-15.52%) ⬇️

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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