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

Skip to content

Conversation

@santisoler
Copy link
Member

@santisoler santisoler commented Sep 20, 2024

Summary

Replace seed for random_seed in directive classes. Replace the seed argument for a new random_seed argument in eigenvalue_by_power_iteration. Update usage of seed argument in tests and in codebase. Add tests to check the deprecations.

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 #1461

What does this implement/fix?

Additional information

TODO

  • update usage of seed in examples and tutorials

Deprecate the `seed` argument and property in directives and replace it
by `random_seed`.
Replace the `seed` argument for a new `random_seed` argument in
eigenvalue_by_power_iteration.
Update calls to `eigenvalue_by_power_iteration` so they use
`random_seed` instead of `seed`.
@codecov
Copy link

codecov bot commented Sep 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.11%. Comparing base (9a07f0a) to head (22d64e5).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1538      +/-   ##
==========================================
+ Coverage   86.08%   86.11%   +0.02%     
==========================================
  Files         397      397              
  Lines       51052    51139      +87     
  Branches     5684     5698      +14     
==========================================
+ Hits        43949    44036      +87     
  Misses       5670     5670              
  Partials     1433     1433              

☔ 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 September 23, 2024 20:43
@santisoler santisoler marked this pull request as draft September 23, 2024 20:43
@santisoler santisoler marked this pull request as ready for review October 4, 2024 22:44
@santisoler santisoler merged commit 492f940 into main Oct 8, 2024
@santisoler santisoler deleted the rename-seed-directives branch October 8, 2024 19:54
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.

2 participants