-
Notifications
You must be signed in to change notification settings - Fork 10
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
DM-11620: Numerical problem with Gaussian test in meas_base with pytest #94
Merged
Commits on Aug 31, 2017
-
Configuration menu - View commit details
-
Copy full SHA for d0dac9f - Browse repository at this point
Copy the full SHA d0dac9fView commit details -
Make Gaussian flux tests deterministic.
Rather than relying on the state of the RNG, we always use a local random state and seed it explicitly. This should make us robust against test failures due to "polluted" randomness.
Configuration menu - View commit details
-
Copy full SHA for a44d823 - Browse repository at this point
Copy the full SHA a44d823View commit details -
Configuration menu - View commit details
-
Copy full SHA for 532b55d - Browse repository at this point
Copy the full SHA 532b55dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 67c5174 - Browse repository at this point
Copy the full SHA 67c5174View commit details -
Rename TestDataset class on import to avoid confusion
pytest looks for classes starting with "Test" and will complain about being unable to find any tests. Renaming the class on import avoids this problem.
Configuration menu - View commit details
-
Copy full SHA for 7c29596 - Browse repository at this point
Copy the full SHA 7c29596View commit details -
Configuration menu - View commit details
-
Copy full SHA for e64cebe - Browse repository at this point
Copy the full SHA e64cebeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 75a4b87 - Browse repository at this point
Copy the full SHA 75a4b87View commit details -
Configuration menu - View commit details
-
Copy full SHA for 84e67e0 - Browse repository at this point
Copy the full SHA 84e67e0View commit details -
Make all test dataset realization deterministic
Some tests here depend on the noise realization in the test data or from the numpy random number generator, so we seed all dataset realizations explicitly. For the current test data and seed value of the random number seed (chosen solely based on the "test passes" criterion), they pass. This may no longer be true if the test data is regenerated or the seed value is changed.
Configuration menu - View commit details
-
Copy full SHA for bc0dbfe - Browse repository at this point
Copy the full SHA bc0dbfeView commit details -
Remove random seeding from test utilities
Random seeding is now done explicitly in the unittests, so this is no longer used.
Configuration menu - View commit details
-
Copy full SHA for f1da33d - Browse repository at this point
Copy the full SHA f1da33dView commit details
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.