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

21 make calculate hh donnan independent of espresso #22

Merged
merged 6 commits into from
Apr 8, 2024

Conversation

davidbbeyer
Copy link
Contributor

@pm-blanco I have adapted the function calculate_HH_Donnan so that it is completely independent of ESPResSo now. The input is now simply the a dictionary containing the concentrations of all macromolecular species in the system. Furthermore, I have removed the separate sample script on the unified G-RxMC method and simply added a command-line argument to the sample script, so one can select between the standard formulation and the one with unified ion types.

@davidbbeyer davidbbeyer linked an issue Mar 12, 2024 that may be closed by this pull request
@pm-blanco
Copy link
Collaborator

@davidbbeyer thank you for taking care of this issue, I will review it ASAP. Meanwhile, could you please provide a small for the CI to check this function?

@davidbbeyer
Copy link
Contributor Author

@pm-blanco Sure, I can do that. Maybe we can just test the implementation of the grand-reaction method (for an ideal gas) against this function?

@pm-blanco
Copy link
Collaborator

@davidbbeyer I would do something even simpler than that. I would generate a set of reference data value for a couple of cases, save it in the data folder of the testsuite and I would do a test test runs that function and checks that it still produces the same data. In this way it can be a very fast test for the CI. Please, if you follow this approach, save the data in the format than the other files there for consistency.

@pm-blanco
Copy link
Collaborator

@davidbbeyer could you please also change the argument object_name in calculate_HH for molecule_name?

Copy link
Collaborator

@pm-blanco pm-blanco left a comment

Choose a reason for hiding this comment

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

The current implementation solves the issue and it provides an extra improvement in our CI testing to check the theoretical calculation of the ideal ionization for both single phase and two phase system. To me it is now good enough to be merged, thank you @davidbbeyer

@pm-blanco pm-blanco merged commit e51a28d into main Apr 8, 2024
2 checks passed
@pm-blanco pm-blanco deleted the 21-make-calculate_hh_donnan-independent-of-espresso branch April 10, 2024 17:41
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.

Make calculate_HH_Donnan independent of ESPResSo
2 participants