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

Add seed argument to check_directive #359

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

santisoler
Copy link
Member

@santisoler santisoler commented May 6, 2024

Add a new seed argument to discretize.tests.check_derivative. Make use of Numpy's random number generator to create random variables in the function. This would help to ensure reproducibility of tests both in discretize and SimPEG.

Add a new `seed` argument to `discretize.tests.check_derivative`. Make
use of Numpy's random number generator to create random variables in the
function.
Copy link

codecov bot commented May 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.12%. Comparing base (300b64a) to head (2155d87).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #359   +/-   ##
=======================================
  Coverage   85.12%   85.12%           
=======================================
  Files          36       36           
  Lines        8408     8409    +1     
=======================================
+ Hits         7157     7158    +1     
  Misses       1251     1251           

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

@jcapriot
Copy link
Member

jcapriot commented May 9, 2024

As mentioned in the meeting, I had started a bit on this already. I've opened a draft PR with what I had at #360 . It still needs a bit of work though.

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