-
Notifications
You must be signed in to change notification settings - Fork 21
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
Radii fix #463
Radii fix #463
Conversation
I would really like to avoid introducing If I understand the How about having Any thoughts @robertodr ? |
Actually, perhaps it's not such a bad idea to pass the entire periodic table through the regular input file? In general we would of course fall back to default values, so the regular user would never have to bother with it. But then the advanced user could easily change a single parameter directly in the input file for use in a particular run, without hard coding a change in a static |
I agree with Stig that we should not add Python packages as required production dependencies. They should all stay as development dependencies and the data needed from them should be saved in the I think it's OK to update |
I have now added the periodic table to the template through the update_input_parser. There are some issues, for example there are elements for which there are no valid vdw-radii in the mantina set. Another one is that the element |
Tests are failing, have added a lot of the files that are under |
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #463 +/- ##
=========================================
Coverage ? 69.57%
=========================================
Files ? 179
Lines ? 15036
Branches ? 0
=========================================
Hits ? 10461
Misses ? 4575
Partials ? 0 ☔ View full report in Codecov by Sentry. |
Everything should be working now. Have some issues with Nobellium and elements without radius entry in the mantina set, but otherwise it should be ok. |
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.
I think you need to run Black and isort on periodictable.py
and validators.py
less lines of code Co-authored-by: Roberto Di Remigio Eikås <[email protected]>
Rename some elements.
Do we have a special configuration file for this? I ran |
on `update_input_parser.py` and `validators.py`
So for formatting it's: |
python/mrchem/validators.py
Outdated
def radiusNotFound(x): | ||
# This raises an exception in the list comprehension if the radius is not valid. | ||
raise ValueError( | ||
"The vdw-radius of element {x} is not defined in the mantina set".format(x) |
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.
f-strings should be preferred:
"The vdw-radius of element {x} is not defined in the mantina set".format(x) | |
f"The vdw-radius of element {x} is not defined in the mantina set" |
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.
Two more small comments, but otherwise looks good!
Co-authored-by: Roberto Di Remigio Eikås <[email protected]>
Alright, i have now added all suggestions :) |
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.
Thanks Gabriel!
Close MRChemSoft#419 We now use qcelemental to fetch Bondi radii, and use alpha=1.2 for hydrogen --------- Co-authored-by: Roberto Di Remigio Eikås <[email protected]>
Finally I implement a simple fix for the default radii for the solvent. This has been an open issue since #419.
Its not the prettiest fix, but I think it does its job.