-
Notifications
You must be signed in to change notification settings - Fork 9
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 ion defaults #32
Conversation
Codecov Report
@@ Coverage Diff @@
## main #32 +/- ##
==========================================
- Coverage 95.77% 95.66% -0.12%
==========================================
Files 25 25
Lines 1112 1106 -6
==========================================
- Hits 1065 1058 -7
- Misses 47 48 +1
Continue to review full report at Codecov.
|
WRT concentration, there is an argument that None means not-specified whereas 0.0 means actually 0. Should be harmless to set the default to 0.0 though. Something I think you've brought up before that I'm not sure on is, does that concentration include the ions required to neutralise? Because with 0.0 arguably you can't neutralize if it does include those ions. @IAlibay |
I believe we're currently just wrapping
|
So in practice neutralize=True with 0 mM ionic concentration just means add the relevant ions to make a neutral system. That's pretty much the standard for it. When you increase the ionic concentration then you essentially adjust the number of ion pairs to aim for that ionic concentration. How that happens in practice is a bit messy, you can look at this code to get an idea of how different methods behave: https://github.com/IAlibay/saltpy/blob/main/saltpy/estimators.py |
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.
Looks good @dwhswenson! Merging!
If both ions are
None
andneutralize=True
(as is the default) behavior is unclear if the system needs to be neutralized. This changes the defaults to "Na+" and "Cl-".Second commit here disallows
None
as a valid value. I don't think there's any reason to allow it if it isn't the default, right?While I'm at it, should I also change default on
ion_concentration
to 0.0 molar, instead ofNone
?