Skip to content

GEOPY-665: Add reference model in gradient term (smooth_mod_diff) options - #483

Merged
domfournier merged 8 commits into
developfrom
GEOPY-665
Oct 5, 2026
Merged

domfournier merged 8 commits into
developfrom
GEOPY-665

Conversation

@domfournier

@domfournier domfournier commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

GEOPY-665 - Add reference model in gradient term (smooth_mod_diff) options

Copilot AI balanced review requested due to automatic review settings September 29, 2026 17:42
@github-actions github-actions Bot changed the title GEOPY-665 GEOPY-665: Add reference model in gradient term (smooth_mod_diff) options Sep 29, 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.

Copilot review overview

🟡 Changes recommended

Specialized MVI-PDE and cross-gradient propagation lacks coverage, and the new user-facing tooltips contain a repeated grammatical error.

Review effort: Balanced
Findings: 2 Medium severity · 19 Low severity

Open (21)

And 1 more that still need to be addressed.

What changed in this PR

Adds configurable reference-model subtraction to regularization smoothness terms across standard and joint inversions.

Changes:

  • Propagates reference_model_in_smooth through inversion options and regularization builders.
  • Exposes the option in inversion UI definitions.
  • Adds coverage for gravity, joint-survey, and PGI workflows and updates PGI targets.
File Description
tests/​run_tests/​driver_joint_surveys_test.py Tests joint-survey propagation.
tests/​run_tests/​driver_joint_pgi_homogeneous_test.py Tests PGI propagation and updates targets.
tests/​run_tests/​driver_grav_test.py Tests standard regularization propagation.
simpeg_drivers/​potential_fields/​magnetic_vector_pde/​inversion.py Configures vector-amplitude regularization.
simpeg_drivers/​options.py Adds the base inversion option.
simpeg_drivers/​joint/​options.py Adds the joint inversion option.
simpeg_drivers/​joint/​joint_surveys/​driver.py Propagates the joint-survey setting.
simpeg_drivers/​joint/​joint_cross_gradient/​driver.py Propagates explicit cross-gradient settings.
simpeg_drivers/​joint/​driver.py Applies settings to component regularizations.
simpeg_drivers/​driver.py Passes the option to sparse regularization.
simpeg_drivers-assets/​uijson/​tipper_inversion.ui.json Adds the UI control.
simpeg_drivers-assets/​uijson/​tdem1d_inversion.ui.json Adds the UI control.
simpeg_drivers-assets/​uijson/​tdem_inversion.ui.json Adds the UI control.
simpeg_drivers-assets/​uijson/​magnetotellurics_inversion.ui.json Adds the UI control.
simpeg_drivers-assets/​uijson/​magnetic_vector_pde_inversion.ui.json Adds the UI control.
simpeg_drivers-assets/​uijson/​magnetic_vector_inversion.ui.json Adds the UI control.
simpeg_drivers-assets/​uijson/​magnetic_scalar_inversion.ui.json Adds the UI control.
simpeg_drivers-assets/​uijson/​joint_surveys_inversion.ui.json Adds the UI control.
simpeg_drivers-assets/​uijson/​joint_petrophysics_inversion.ui.json Adds the UI control.
simpeg_drivers-assets/​uijson/​joint_cross_gradient_inversion.ui.json Adds the UI control.
simpeg_drivers-assets/​uijson/​induced_polarization_3d_inversion.ui.json Adds the UI control.
simpeg_drivers-assets/​uijson/​induced_polarization_2d_inversion.ui.json Adds the UI control.
simpeg_drivers-assets/​uijson/​gravity_inversion.ui.json Adds the UI control.
simpeg_drivers-assets/​uijson/​fdem1d_inversion.ui.json Adds the UI control.
simpeg_drivers-assets/​uijson/​fdem_inversion.ui.json Adds the UI control.
simpeg_drivers-assets/​uijson/​direct_current_3d_inversion.ui.json Adds the UI control.
simpeg_drivers-assets/​uijson/​direct_current_2d_inversion.ui.json Adds the UI control.
simpeg_drivers-assets/​uijson/​borehole_tdem_inversion.ui.json Adds the UI control.
simpeg_drivers-assets/​uijson/​apparent_conductivity_inversion.ui.json Adds the UI control.

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

Comment thread simpeg_drivers/joint/joint_cross_gradient/driver.py
Comment thread simpeg_drivers/potential_fields/magnetic_vector_pde/inversion.py
Comment thread simpeg_drivers-assets/uijson/apparent_conductivity_inversion.ui.json Outdated
Comment thread simpeg_drivers-assets/uijson/borehole_tdem_inversion.ui.json Outdated
Comment thread simpeg_drivers-assets/uijson/direct_current_2d_inversion.ui.json Outdated
Comment thread simpeg_drivers-assets/uijson/magnetic_vector_pde_inversion.ui.json Outdated
Comment thread simpeg_drivers-assets/uijson/magnetotellurics_inversion.ui.json Outdated
Comment thread simpeg_drivers-assets/uijson/tdem1d_inversion.ui.json Outdated
Comment thread simpeg_drivers-assets/uijson/tdem_inversion.ui.json Outdated
Comment thread simpeg_drivers-assets/uijson/tipper_inversion.ui.json Outdated
@codecov

codecov Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 84.21053% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.47%. Comparing base (76e7a73) to head (bcd2877).

Files with missing lines Patch % Lines
simpeg_drivers/joint/driver.py 78.57% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #483      +/-   ##
===========================================
- Coverage    90.48%   90.47%   -0.02%     
===========================================
  Files          111      111              
  Lines         7108     7126      +18     
  Branches       881      884       +3     
===========================================
+ Hits          6432     6447      +15     
- Misses         456      457       +1     
- Partials       220      222       +2     
Files with missing lines Coverage Δ
simpeg_drivers/driver.py 87.04% <ø> (ø)
...impeg_drivers/joint/joint_cross_gradient/driver.py 89.09% <100.00%> (+0.41%) ⬆️
simpeg_drivers/joint/joint_surveys/driver.py 92.20% <100.00%> (+0.10%) ⬆️
simpeg_drivers/joint/options.py 100.00% <100.00%> (ø)
simpeg_drivers/options.py 95.95% <100.00%> (+0.01%) ⬆️
.../potential_fields/magnetic_vector_pde/inversion.py 54.54% <ø> (ø)
simpeg_drivers/joint/driver.py 91.53% <78.57%> (-0.65%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@domfournier
domfournier merged commit 485e17b into develop Oct 5, 2026
21 checks passed
@domfournier
domfournier deleted the GEOPY-665 branch October 5, 2026 14:44
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