Skip to content

GEOPY-95: Migrate em_inversion (EM1D) script to simpeg-drivers#174

Merged
domfournier merged 35 commits intodevelopfrom
GEOPY-95
Mar 31, 2025
Merged

GEOPY-95: Migrate em_inversion (EM1D) script to simpeg-drivers#174
domfournier merged 35 commits intodevelopfrom
GEOPY-95

Conversation

@domfournier
Copy link
Collaborator

@domfournier domfournier commented Mar 20, 2025

GEOPY-95 - Migrate em_inversion (EM1D) script to simpeg-drivers

@github-actions github-actions bot changed the title GEOPY-95 GEOPY-95: Migrate em_inversion (EM1D) script to simpeg-drivers Mar 20, 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.

some ui.json suggestions to make the new one compatible with my changes on 2068

"verbose": 2,
"enabled": true,
"tooltip": "Set the number of iterations per beta value. Use higher values for more non-linear optimization problems."
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
},
},
"epsilon_cooling_factor": 1.2,

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Why is that?

Copy link
Contributor

Choose a reason for hiding this comment

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

it's to prevent the input file warnings since epsilon_cooling_factor is an attribute of the inversion options classes.

Copy link
Contributor

Choose a reason for hiding this comment

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

I pushed some other changes to this effect.

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.

Not sure I understand the roles of the different meshes in here. Posted some feedback on structure of the InversionMesh class.

benk-mira
benk-mira previously approved these changes Mar 28, 2025
@codecov
Copy link

codecov bot commented Mar 28, 2025

Codecov Report

Attention: Patch coverage is 93.33333% with 23 lines in your changes missing coverage. Please review.

Project coverage is 90.03%. Comparing base (74a47c5) to head (39822b6).
Report is 37 commits behind head on develop.

Files with missing lines Patch % Lines
...peg_drivers/components/factories/source_factory.py 83.87% 3 Missing and 2 partials ⚠️
simpeg_drivers/components/meshes.py 80.00% 3 Missing and 2 partials ⚠️
simpeg_drivers/params.py 82.60% 2 Missing and 2 partials ⚠️
simpeg_drivers/utils/utils.py 92.72% 2 Missing and 2 partials ⚠️
...peg_drivers/electromagnetics/time_domain/driver.py 92.30% 1 Missing and 1 partial ⚠️
..._drivers/electromagnetics/time_domain_1d/driver.py 96.36% 1 Missing and 1 partial ⚠️
...drivers/components/factories/simulation_factory.py 96.42% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #174      +/-   ##
===========================================
+ Coverage    89.62%   90.03%   +0.40%     
===========================================
  Files           81       84       +3     
  Lines         4685     4787     +102     
  Branches       608      618      +10     
===========================================
+ Hits          4199     4310     +111     
+ Misses         328      321       -7     
+ Partials       158      156       -2     
Files with missing lines Coverage Δ
simpeg_drivers/__init__.py 86.66% <ø> (ø)
simpeg_drivers/components/data.py 92.75% <100.00%> (+0.10%) ⬆️
...drivers/components/factories/directives_factory.py 96.58% <100.00%> (+0.05%) ⬆️
...peg_drivers/components/factories/misfit_factory.py 96.87% <100.00%> (ø)
...g_drivers/components/factories/receiver_factory.py 86.51% <100.00%> (+1.90%) ⬆️
...peg_drivers/components/factories/simpeg_factory.py 92.59% <ø> (ø)
...peg_drivers/components/factories/survey_factory.py 91.86% <100.00%> (+0.13%) ⬆️
simpeg_drivers/components/models.py 84.87% <100.00%> (+1.83%) ⬆️
simpeg_drivers/components/topography.py 92.30% <100.00%> (ø)
simpeg_drivers/driver.py 87.98% <100.00%> (+0.07%) ⬆️
... and 17 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.

(cherry picked from commit 2f9c617)

# Conflicts:
#	environments/py-3.10-linux-64-dev.conda.lock.yml
#	environments/py-3.10-linux-64.conda.lock.yml
#	environments/py-3.10-win-64-dev.conda.lock.yml
#	environments/py-3.10-win-64.conda.lock.yml
#	environments/py-3.11-linux-64-dev.conda.lock.yml
#	environments/py-3.11-linux-64.conda.lock.yml
#	environments/py-3.11-win-64-dev.conda.lock.yml
#	environments/py-3.11-win-64.conda.lock.yml
#	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
#	py-3.10.conda-lock.yml
#	py-3.11.conda-lock.yml
#	py-3.12.conda-lock.yml
@domfournier domfournier merged commit 00813ed into develop Mar 31, 2025
14 checks passed
@domfournier domfournier deleted the GEOPY-95 branch March 31, 2025 21:58
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