Skip to content

GEOPY-3041: Create Data groups for L2 and LP iterations on predicted data - #476

Open
domfournier wants to merge 14 commits into
developfrom
GEOPY-3041
Open

GEOPY-3041: Create Data groups for L2 and LP iterations on predicted data#476
domfournier wants to merge 14 commits into
developfrom
GEOPY-3041

Conversation

@domfournier

@domfournier domfournier commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

GEOPY-3041 - Create Data groups for L2 and LP iterations on predicted data

Copilot AI lite review requested due to automatic review settings September 1, 2026 15:33
@github-actions github-actions Bot changed the title GEOPY-3041 GEOPY-3041: Create Data groups for L2 and LP iterations on predicted data Sep 1, 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 updates SimPEG driver save directives to create iteration-based data groupings (L2/LP) on predicted data outputs, and adjusts dependency/lockfiles to use a SimPEG branch containing the needed directive support.

Changes:

  • Add a SaveLPIterationsGroup save directive for predicted data in the directives factory and update the model-group directive type used there.
  • Extend the gravity run test to assert that an "L2 iterations" PropertyGroup exists on predicted data outputs.
  • Update mira-simpeg git revision in pyproject.toml and refresh conda-lock outputs accordingly.

Reviewed changes

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

Show a summary per file
File Description
tests/run_tests/driver_grav_test.py Adds assertions for the new L2-iterations grouping on predicted data.
simpeg_drivers/components/factories/directives_factory.py Updates which grouping directives are added when saving iteration data/models.
pyproject.toml Switches mira-simpeg dependency to a GEOPY-3041 git revision.
py-3.13.conda-lock.yml Regenerated lockfile reflecting updated mira-simpeg resolution and transitive updates.
py-3.12.conda-lock.yml Regenerated lockfile reflecting updated mira-simpeg resolution and transitive updates.
environments/py-3.13-win-64.conda.lock.yml Updated environment lockfile snapshot for win-64 (py3.13).
environments/py-3.13-win-64-dev.conda.lock.yml Updated dev environment lockfile snapshot for win-64 (py3.13).
environments/py-3.13-linux-64.conda.lock.yml Updated environment lockfile snapshot for linux-64 (py3.13).
environments/py-3.13-linux-64-dev.conda.lock.yml Updated dev environment lockfile snapshot for linux-64 (py3.13).
environments/py-3.12-win-64.conda.lock.yml Updated environment lockfile snapshot for win-64 (py3.12).
environments/py-3.12-win-64-dev.conda.lock.yml Updated dev environment lockfile snapshot for win-64 (py3.12).
environments/py-3.12-linux-64.conda.lock.yml Updated environment lockfile snapshot for linux-64 (py3.12).
environments/py-3.12-linux-64-dev.conda.lock.yml Updated dev environment lockfile snapshot for linux-64 (py3.12).

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

Comment thread simpeg_drivers/components/factories/directives_factory.py
Comment thread pyproject.toml Outdated
Comment thread tests/run_tests/driver_grav_test.py
@codecov

codecov Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.46%. Comparing base (0053243) to head (b8439d0).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #476   +/-   ##
========================================
  Coverage    90.45%   90.46%           
========================================
  Files          113      113           
  Lines         6987     6993    +6     
  Branches       862      864    +2     
========================================
+ Hits          6320     6326    +6     
  Misses         451      451           
  Partials       216      216           
Files with missing lines Coverage Δ
...drivers/components/factories/directives_factory.py 95.76% <100.00%> (+0.04%) ⬆️
simpeg_drivers/joint/driver.py 92.17% <100.00%> (+0.08%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread simpeg_drivers/joint/driver.py
Comment on lines +478 to +482
else:
save_group = directives.SaveLPIterationsGroup(
driver.inversion_data.entity,
driver.directives.update_irls_directive,
components=directive.components,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

should driver.directives.updated_irls_directive be self._directives.update_irls_directive as done above?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, you are correct. The sub-directive would always stay L2...

# Conflicts:
#	environments/py-3.12-linux-64-dev.conda.lock.yml
#	environments/py-3.12-win-64-dev.conda.lock.yml
#	environments/py-3.13-linux-64-dev.conda.lock.yml
#	environments/py-3.13-win-64-dev.conda.lock.yml
#	py-3.12.conda-lock.yml
#	py-3.13.conda-lock.yml
GEOPY-3043: Create different data types for declination and inclination on the MVI models
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