Make pytest random inputs deterministic#45
Closed
chenzc24 wants to merge 1 commit into
Closed
Conversation
This was referenced Jun 22, 2026
Owner
|
Closing as superseded by #48, which was squash-merged into main and includes this stack layer's deterministic RNG changes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of the follow-up work for #36.
Summary:
np.random.default_rng(...)instances.Tests:
uv run --with pytest pytest tests/unit/calibration -quv run --with pytest pytest tests/unit/aout -quv run --with pytest pytest tests/unit/spectrum -quv run --with pytest pytest tests/unit/dout/test_plot_residual_scatter.py tests/unit/fundamentals/test_verify_fit_sine_4param.py tests/unit/oversampling/test_matlab_compat_api.py -quv run --with pytest pytest tests/unit/calibration tests/unit/aout tests/unit/spectrum tests/unit/dout/test_plot_residual_scatter.py tests/unit/fundamentals/test_verify_fit_sine_4param.py tests/unit/oversampling/test_matlab_compat_api.py -q