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

fixup for failing conditional sampling tests #1289

Merged
merged 4 commits into from
Oct 4, 2024
Merged

Conversation

michaeldeistler
Copy link
Contributor

@michaeldeistler michaeldeistler commented Oct 4, 2024

Fix broken tests to prepare for release.

#1276 caused issues in conditional sampling tests
#1279 caused issues with LC2ST accuracy tests

Copy link
Contributor

@manuelgloeckler manuelgloeckler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@@ -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
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link

codecov bot commented Oct 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.36%. Comparing base (299854e) to head (4627e70).
Report is 10 commits behind head on main.

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     
Flag Coverage Δ
unittests 78.36% <ø> (-10.88%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 33 files with indirect coverage changes

@michaeldeistler michaeldeistler merged commit 428fc93 into main Oct 4, 2024
4 checks passed
@michaeldeistler michaeldeistler deleted the fixtests branch October 4, 2024 10:23
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