-
Notifications
You must be signed in to change notification settings - Fork 8
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
21 make calculate hh donnan independent of espresso #22
Conversation
@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? |
@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? |
@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. |
@davidbbeyer could you please also change the argument |
There was a problem hiding this 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 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.