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

Tests #25

Merged
merged 4 commits into from
Oct 16, 2023
Merged

Tests #25

merged 4 commits into from
Oct 16, 2023

Conversation

reubenharry
Copy link
Collaborator

I think a basic thing the tests should do is run every configuration of the sampler that we expect to work in general. This way, we make sure that nothing breaks whenever we commit new code.

For example, in the tests, I run:

sampler.sample(20, 3, output='ess')
sampler.sample(20, 3, output='expectation')
sampler.sample(20, 3, output='detailed')
sampler.sample(20, 3, output='normal')

This already reveals that 'expectation' and 'ess' are not currently working on the master branch. (@JakobRobnik , should they be? If not, we should just remove them, and if so, we should fix them).

I haven't added similar code to test the annealing, ensemble or other samplers, but we should also do that soon.

@JakobRobnik
Copy link
Owner

JakobRobnik commented Oct 14, 2023 via email

@reubenharry reubenharry merged commit bd96105 into master Oct 16, 2023
1 check passed
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