Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dccowan
Copy link
Member

@dccowan dccowan commented Jun 11, 2025

Summary

This pull request adds the functionality to simulate and invert admittance and tipper data for 2D problem geometry.

PR Checklist

  • If this is a work in progress PR, set as a Draft PR
  • Linted my code according to the style guides.
  • Added tests to verify changes to the code.
  • Added necessary documentation to any new functions/classes following the
    expect style.
  • Marked as ready for review (if this is was a draft PR), and converted
    to a Pull Request
  • Tagged @simpeg/simpeg-developers when ready for review.

What does this implement/fix?

This pull request adds the functionality to simulate and invert admittance and tipper data for 2D problem geometry.

dccowan and others added 5 commits June 11, 2025 13:34
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Jun 11, 2025

Codecov Report

❌ Patch coverage is 96.83544% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.54%. Comparing base (5f060ec) to head (ccc08b7).

Files with missing lines Patch % Lines
...impeg/electromagnetics/natural_source/receivers.py 98.55% 0 Missing and 2 partials ⚠️
...em/forward/test_Simulation2D_vs_Analytic_pytest.py 85.71% 0 Missing and 2 partials ⚠️
...nsem/inversion/test_NSEM_2D_jvecjtvecadj_pytest.py 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1684      +/-   ##
==========================================
+ Coverage   81.52%   81.54%   +0.02%     
==========================================
  Files         420      420              
  Lines       55174    55231      +57     
  Branches     5254     5271      +17     
==========================================
+ Hits        44978    45038      +60     
+ Misses       8790     8783       -7     
- Partials     1406     1410       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

@dccowan dccowan requested a review from a team June 18, 2025 17:43
Copy link
Member

@santisoler santisoler left a comment

Choose a reason for hiding this comment

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

I left a few minor comments, @dccowan. Please check them out and let me know what do you think.

I see that coverage is missing L782-L783 in receivers.py. Could we add an extra test case to cover that if statement?

Thanks for putting this together!

@dccowan
Copy link
Member Author

dccowan commented Jul 17, 2025

I left a few minor comments, @dccowan. Please check them out and let me know what do you think.

I see that coverage is missing L782-L783 in receivers.py. Could we add an extra test case to cover that if statement?

Thanks for putting this together!

Sure. Before finishing this PR however, I would like have PR #1683 merged. It will make things related to the 2D simulation easier to test.

@dccowan
Copy link
Member Author

dccowan commented Oct 10, 2025

I left a few minor comments, @dccowan. Please check them out and let me know what do you think.

I see that coverage is missing L782-L783 in receivers.py. Could we add an extra test case to cover that if statement?

Thanks for putting this together!

I'm not sure these lines are necessary for 3D. I think it may just be for the 3D problem geometry. I noticed the 2D problem geometry for impedance type data doesn't have this functionality. So I've decided to remove these lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants