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

Change a single test to use explicit rather than implicit random state from NumPy #1775

Merged

Conversation

DougBurke
Copy link
Contributor

Summary

Simplify a single test. There is no functional change.

Details

This is clean-up code which I've pulled out of #1735. Technically it's part of the aim of that PR, but it's completely standalone, and so can get taken now.

For this test we can easily use a random state explicitly rather than the implicit state of the legacy NumPy random API. It means we can drop the reset_seed fixture for this particular test.

For this test we can easily use a random state explicitly rather than
the implicit state of the legacy NumPy random API. It means we can
drop the reset_seed fixture for this particular test.
@DougBurke DougBurke added area:tests note: easy review Indicates PR requires simple review labels May 19, 2023
@codecov
Copy link

codecov bot commented May 19, 2023

Codecov Report

Merging #1775 (06b73ec) into main (4997f6c) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1775   +/-   ##
=======================================
  Coverage   79.04%   79.04%           
=======================================
  Files          72       72           
  Lines       27076    27076           
  Branches     4029     4029           
=======================================
  Hits        21403    21403           
  Misses       5510     5510           
  Partials      163      163           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4997f6c...06b73ec. Read the comment docs.

@DougBurke DougBurke requested a review from hamogu May 19, 2023 19:35
@wmclaugh wmclaugh merged commit 528a571 into sherpa:main May 24, 2023
18 checks passed
@DougBurke DougBurke deleted the remove-old-rng-interface-for-a-single-test branch May 24, 2023 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:tests note: easy review Indicates PR requires simple review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants