-
Notifications
You must be signed in to change notification settings - Fork 158
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
fixup for failing conditional sampling tests #1289
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
tests/linearGaussian_fmpe_test.py
Outdated
@@ -287,7 +287,7 @@ def simulator(theta): | |||
# Evaluate the conditional density be drawing samples and smoothing with a Gaussian | |||
# kde. | |||
potential_fn, theta_transform = posterior_estimator_based_potential( | |||
posterior_estimator, prior=prior | |||
posterior_estimator, prior=prior, x_o=None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has x_o
recently made a required positional argument?
I was just wondering as the previous code would have just raised an error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has always been a required argument. And yes, the test failed because the error got raised. See #1276 for how the bug happened.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1289 +/- ##
===========================================
- Coverage 89.24% 78.36% -10.88%
===========================================
Files 119 119
Lines 8695 8728 +33
===========================================
- Hits 7760 6840 -920
- Misses 935 1888 +953
Flags with carried forward coverage won't be shown. Click here to find out more. |
Fix broken tests to prepare for release.
#1276 caused issues in conditional sampling tests
#1279 caused issues with LC2ST accuracy tests