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

Reaction Ensemble refactor and unit testing #4164

Merged
merged 24 commits into from
Mar 24, 2021

Conversation

jngrad
Copy link
Member

@jngrad jngrad commented Mar 17, 2021

Fixes #4157

Description of changes:

  • make SingleReaction class self-contained
  • make RE methods and arguments const whenever possible
  • write unit tests for the acceptance probability of all RE classes
  • write integration tests to increase code coverage of RE to 90%

jngrad added 8 commits March 18, 2021 10:16
Move the Wang-Landau output files checks to an interface test. The
statistical test runs the Monte Carlo algorithm until convergence.
Sample at a pH farther away from the pKa, shorten warmup phase,
run with 1 MPI rank to remove large overhead from communication.
@jngrad jngrad added the Core label Mar 18, 2021
jngrad added 2 commits March 23, 2021 15:24
Separate the formatting code from the file opening code.
Helps with unit testing.
@jngrad jngrad changed the title Reaction Ensemble unit tests Reaction Ensemble refactor and unit testing Mar 23, 2021
Copy link
Member

@KaiSzuttor KaiSzuttor left a comment

Choose a reason for hiding this comment

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

Overall looks good, it's just not the prettiest neighbourhood of espresso :P

@jngrad jngrad added the automerge Merge with kodiak label Mar 24, 2021
@kodiakhq kodiakhq bot merged commit b6fa1a9 into espressomd:python Mar 24, 2021
@jngrad jngrad deleted the re_unit_tests branch March 24, 2021 16:15
@jngrad jngrad added this to the Espresso 4.2 milestone Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve testing of the Reaction Ensemble
2 participants