Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the debug argument from InversionDirective #1370

Merged
merged 3 commits into from
Mar 13, 2024

Conversation

santisoler
Copy link
Member

@santisoler santisoler commented Mar 6, 2024

Summary

Remove the debug argument and property from InversionDirective, add new test to check if it raises an error when passing it as argument. Update directive class using the debug property.

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.

Reference issue

Part of the solution for #1302

What does this implement/fix?

Additional information

Most of these changes were cherry-picked from #1306

Remove the `debug` argument and property from `InversionDirective`, add
new test to check if it raises an error when passing it as argument.
Update directive class using the `debug` property.
Copy link

codecov bot commented Mar 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.08%. Comparing base (887cfe2) to head (8c0384c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1370      +/-   ##
==========================================
- Coverage   82.30%   82.08%   -0.23%     
==========================================
  Files         165      165              
  Lines       25233    25232       -1     
==========================================
- Hits        20769    20711      -58     
- Misses       4464     4521      +57     

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

@santisoler santisoler marked this pull request as ready for review March 6, 2024 18:18
@santisoler santisoler added this to the 0.21.0 milestone Mar 6, 2024
Copy link
Member

@jcapriot jcapriot 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

@jcapriot
Copy link
Member

The random number generator in the tests is rather annoying, I feel like we really need to get support for numpy's generator objects in to all of the tests soon, just so we don't keep having this problem...

@santisoler
Copy link
Member Author

It is annoying: #1289

@santisoler santisoler merged commit f2e29ad into main Mar 13, 2024
13 of 16 checks passed
@santisoler santisoler deleted the ditch-debug-inversion-directive branch March 13, 2024 16:20
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.

None yet

2 participants