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

Use Numpy rng in TDEM tests #1452

Merged
merged 3 commits into from
Jun 10, 2024
Merged

Use Numpy rng in TDEM tests #1452

merged 3 commits into from
Jun 10, 2024

Conversation

santisoler
Copy link
Member

@santisoler santisoler commented May 6, 2024

Summary

Replace the usage of the deprecated functions in numpy.random module for the Numpy's random number generator class and its methods, in most of the TDEM tests.

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 to #1289

This PR might be related to #1233

What does this implement/fix?

Additional information

TODO:

Replace the usage of the deprecated functions in `numpy.random` module
for the Numpy's random number generator class and its methods, in most
of the TDEM tests.
Copy link

codecov bot commented May 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.34%. Comparing base (c31da25) to head (d33db3f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1452   +/-   ##
=======================================
  Coverage   82.34%   82.34%           
=======================================
  Files         171      171           
  Lines       26027    26027           
=======================================
  Hits        21431    21431           
  Misses       4596     4596           

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

These extra lines should be removed after adding the `seed` argument in
discretize `check_derivative` function.
@santisoler santisoler merged commit 91d1f57 into main Jun 10, 2024
18 checks passed
@santisoler santisoler deleted the rng-tdem-tests branch June 10, 2024 19:52
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

1 participant