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

Change Reaction Methods interface #4305

Merged
merged 5 commits into from
Jul 20, 2021

Conversation

pm-blanco
Copy link
Contributor

@pm-blanco pm-blanco commented Jul 14, 2021

Fixes minor issues in #4251

Description of changes:

  • ReactionAlgorithm::generic_oneway_reaction(): changed the name of the accumulators to accumulator_potential_energy_difference_exponential for clarity
  • The name of the argument temperature has been replaced by kT. The related tests have been modified accordingly.
  • The arguments reactant_coefficients and product_coefficients are now optional parameters for the constant pH ensemble, with default values of [1] resp. [1, 1]. If the user provides these parameters he gets either (i) an error message if values other than the default ones are supplied or (ii) a one-time warning stating that these arguments are only kept as input for backward compatibility and are deprecated.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@jngrad jngrad self-requested a review July 19, 2021 12:18
pm-blanco and others added 4 commits July 20, 2021 15:42
Change the name of the variable temperature to kT, for consistency
with the rest of the code and its physical meaning.
All product and reactant coefficients must equal one
in the constant pH method.
@jngrad jngrad force-pushed the refactoring_reaction_ensamble_2 branch from 4c28b51 to 996e529 Compare July 20, 2021 14:10
Copy link
Member

@jngrad jngrad left a comment

Choose a reason for hiding this comment

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

LGTM

@jngrad jngrad added this to the Espresso 4.2 milestone Jul 20, 2021
@jngrad jngrad changed the title Refactoring reaction ensamble 2 Change Reaction Methods interface Jul 20, 2021
@jngrad jngrad added the automerge Merge with kodiak label Jul 20, 2021
@kodiakhq kodiakhq bot merged commit fc03e5d into espressomd:python Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants