Skip to content

GEOPY-2490#358

Open
domfournier wants to merge 28 commits intodevelopfrom
GEOPY-2490
Open

GEOPY-2490#358
domfournier wants to merge 28 commits intodevelopfrom
GEOPY-2490

Conversation

@domfournier
Copy link
Collaborator

No description provided.

domfournier and others added 24 commits March 3, 2026 16:03
# Conflicts:
#	simpeg_drivers-assets/uijson/direct_current_2d_forward.ui.json
#	simpeg_drivers-assets/uijson/direct_current_2d_inversion.ui.json
#	simpeg_drivers-assets/uijson/direct_current_batch2d_inversion.ui.json
#	simpeg_drivers-assets/uijson/induced_polarization_2d_forward.ui.json
#	simpeg_drivers-assets/uijson/induced_polarization_2d_inversion.ui.json
#	simpeg_drivers-assets/uijson/induced_polarization_batch2d_inversion.ui.json
@codecov
Copy link

codecov bot commented Mar 11, 2026

Codecov Report

❌ Patch coverage is 94.94585% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.86%. Comparing base (b38bf2d) to head (762526d).

Files with missing lines Patch % Lines
simpeg_drivers/utils/regularization.py 63.63% 1 Missing and 3 partials ⚠️
simpeg_drivers/utils/utils.py 92.15% 3 Missing and 1 partial ⚠️
simpeg_drivers/options.py 84.61% 0 Missing and 2 partials ⚠️
simpeg_drivers/utils/nested.py 94.11% 1 Missing and 1 partial ⚠️
simpeg_drivers/utils/synthetics/driver.py 93.54% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #358      +/-   ##
===========================================
- Coverage    91.27%   90.86%   -0.42%     
===========================================
  Files          120      112       -8     
  Lines         6602     6305     -297     
  Branches       799      775      -24     
===========================================
- Hits          6026     5729     -297     
- Misses         381      396      +15     
+ Partials       195      180      -15     
Files with missing lines Coverage Δ
simpeg_drivers/__init__.py 88.88% <ø> (ø)
simpeg_drivers/components/data.py 92.85% <100.00%> (+0.34%) ⬆️
...drivers/components/factories/directives_factory.py 97.48% <100.00%> (+0.83%) ⬆️
...drivers/components/factories/simulation_factory.py 98.80% <100.00%> (ø)
simpeg_drivers/components/models.py 90.85% <100.00%> (-0.30%) ⬇️
simpeg_drivers/components/topography.py 93.65% <100.00%> (ø)
simpeg_drivers/driver.py 85.31% <100.00%> (ø)
simpeg_drivers/electricals/base_2d.py 100.00% <100.00%> (ø)
...lectricals/direct_current/two_dimensions/driver.py 100.00% <100.00%> (ø)
...ectricals/direct_current/two_dimensions/options.py 100.00% <100.00%> (ø)
... and 12 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Looks good, nice use of utilities for separation of concerns and documenting the drape model handling! Couple suggestions

@classmethod
def deprecated_pseudo(cls, data: dict):
if "pseudo 3d" in data.get("inversion_type", ""):
logger.warning(
Copy link
Contributor

Choose a reason for hiding this comment

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

Use DeprecationWarning instead, something like:

Image

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

actives = prisms[:, -1] != 1

nu_layers = np.unique(prisms[:, -1])
nu_layers = np.unique(prisms[actives, -1])
Copy link
Contributor

Choose a reason for hiding this comment

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

I think I saw the same operation earlier.. pull out as a utility?

Copy link
Collaborator Author

@domfournier domfournier Mar 11, 2026

Choose a reason for hiding this comment

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

Here I need to logic mask, the other the reduced prisms. I really want to avoid maintaining single line functions

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