Skip to content

GEOPY-2232: Refactor components of inversion options#221

Merged
domfournier merged 62 commits intodevelopfrom
GEOPY-2232
Jun 11, 2025
Merged

GEOPY-2232: Refactor components of inversion options#221
domfournier merged 62 commits intodevelopfrom
GEOPY-2232

Conversation

@domfournier
Copy link
Collaborator

@domfournier domfournier commented Jun 3, 2025

GEOPY-2232 - Refactor components of inversion options

@github-actions github-actions bot changed the title GEOPY-2232 GEOPY-2232: Refactor components of inversion options Jun 3, 2025
@domfournier domfournier changed the base branch from release/0.3.0 to develop June 3, 2025 21:39
benk-mira
benk-mira previously approved these changes Jun 9, 2025
Copy link
Contributor

@benk-mira benk-mira left a comment

Choose a reason for hiding this comment

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

Nice work, like the organization!

"enabled": true,
"tooltip": "Lp-norm used in the z-smoothness term of the objective function."
},
"gradient_type": "total",
Copy link
Contributor

Choose a reason for hiding this comment

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

won't this produce ifile.data and ui_json different length warnings?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not anymore since I am using self.model_dump(exclude_unset=True) and ifile.update_ui_values instead. So only the values that were assigned get changed. For standard ui.json runs that is all of them since coming from file, but for local test runs only partial.

@codecov
Copy link

codecov bot commented Jun 10, 2025

Codecov Report

Attention: Patch coverage is 96.60633% with 15 lines in your changes missing coverage. Please review.

Project coverage is 90.74%. Comparing base (a2cc0d4) to head (3802046).
Report is 63 commits behind head on develop.

Files with missing lines Patch % Lines
simpeg_drivers/components/models.py 92.50% 4 Missing and 5 partials ⚠️
simpeg_drivers/driver.py 81.81% 1 Missing and 1 partial ⚠️
simpeg_drivers/joint/driver.py 71.42% 1 Missing and 1 partial ⚠️
simpeg_drivers/options.py 98.46% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #221      +/-   ##
===========================================
- Coverage    91.02%   90.74%   -0.28%     
===========================================
  Files           85       85              
  Lines         5101     5034      -67     
  Branches       652      650       -2     
===========================================
- Hits          4643     4568      -75     
- Misses         298      300       +2     
- Partials       160      166       +6     
Files with missing lines Coverage Δ
simpeg_drivers/components/data.py 92.85% <100.00%> (+0.10%) ⬆️
...drivers/components/factories/directives_factory.py 95.88% <100.00%> (-0.81%) ⬇️
...peg_drivers/components/factories/misfit_factory.py 97.00% <100.00%> (ø)
...drivers/components/factories/simulation_factory.py 98.94% <100.00%> (ø)
...peg_drivers/components/factories/source_factory.py 91.46% <100.00%> (ø)
.../direct_current/pseudo_three_dimensions/options.py 100.00% <100.00%> (ø)
...tricals/direct_current/three_dimensions/options.py 100.00% <100.00%> (ø)
...ectricals/direct_current/two_dimensions/options.py 100.00% <100.00%> (ø)
simpeg_drivers/electricals/driver.py 89.58% <100.00%> (-0.11%) ⬇️
...ed_polarization/pseudo_three_dimensions/options.py 100.00% <100.00%> (ø)
... and 25 more

... and 1 file with indirect coverage changes

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

@domfournier domfournier merged commit 2519789 into develop Jun 11, 2025
14 checks passed
@domfournier domfournier deleted the GEOPY-2232 branch June 11, 2025 21:08
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