Repository navigation
EMsimulation face and edge conductivities - #1296
Conversation
# Conflicts: # SimPEG/base/pde_simulation.py # tests/base/test_mass_matrices.py
… with face and edge conductivities
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1296 +/- ##
==========================================
+ Coverage 86.52% 86.71% +0.18%
==========================================
Files 423 429 +6
Lines 56338 57506 +1168
Branches 5354 5438 +84
==========================================
+ Hits 48749 49865 +1116
- Misses 6171 6197 +26
- Partials 1418 1444 +26 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
With regards to docstrings, this will be done when general docstrings for EM modules are created for the API. |
…operty matrices, kwarg for hierarchical properties
jcapriot
left a comment
There was a problem hiding this comment.
Thanks for turning these around so quickly @dccowan. The cache, the map names and the DC test all look good now (I checked the cache by changing each property and doing a model update, and compared against freshly built sims). I left suggestions for what's left that you can batch-commit: the hierarchical q in the electric field docstring, the np.random.default_rng(...) lines (those don't seed the global state), survey as a positional argument again, the full-tensor case in MeSigmaI, and a handful of docstring typos. I ran the base, maps, DC, FDEM and TDEM hierarchical tests with all of them applied and they pass.
One other thing: the direct eDeriv_m / eDeriv_u adjoint tests from TDEM_Fields_B_Pieces aren't in test_TDEM_DerivAdjoint.py anymore. The new parametrized tests reach those functions as integration tests (I perturbed the adjoint branches and several of the B formulation cases fail), but unit tests for them are still worth having. They isolate the fields functions so a failure points straight at the function, and they caught a 0.1% error that only some of the new cases do. I'd strongly suggest bringing them back as plain pytest functions (no unittest class needed).
I'll reply on the getA(resistivity) thread separately.
Co-authored-by: Santiago Soler <[email protected]> Co-authored-by: Joseph Capriotti <[email protected]>
Co-authored-by: Joseph Capriotti <[email protected]>
jcapriot
left a comment
There was a problem hiding this comment.
Thanks for the work Devin, I'm happy with it now!
|
🚀 |
Summary
This pull request covers the addition of face and edge conductivities to FDEM and TDEM simulations. Because most of the properties are part of a base EMsimulation class, work can be done to add this functionality to static problems in the future. Due to the amount of invertible and non-invertible properties, we will make new simulation classes to handle this type of problem, and leave the original EM simulation classes as is.
PR Checklist
expect style.
to a Pull Request
@simpeg/simpeg-developerswhen ready for review.What does this implement/fix?