-
Notifications
You must be signed in to change notification settings - Fork 173
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
Add the firework for calculating the electronic energy of a proton in different solvent environments[WIP] #758
Conversation
@Zhuoying, please trigger the tests here |
Thanks @samblau for the reminder. -Just trigger tests and it looks like passing the tests. |
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.
Very minor changes suggested. Once they are made, this should be ready to merge!
"output_file_H2", | ||
"additional_fields", | ||
"db_file", | ||
"multirun", |
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.
multirun should not be an optional parameter here since we are prescribing exactly what is being parsed
additional_fields (dict): dict of additional fields to add | ||
db_file (str): path to file containing the database credentials. | ||
Supports env_chk. Default: write data to JSON file. | ||
multirun (bool): Whether the job to parse includes multiple |
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.
remove multirun documentation
output_file_H0 = self.get("output_file_H0", "H0.qout") | ||
input_file_H2 = self.get("input_file_H2", "H2_plus.qin") | ||
output_file_H2 = self.get("output_file_H2", "H2_plus.qout") | ||
multirun = self.get("multirun", False) |
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.
remove multirun
path=calc_dir, | ||
input_file=input_file_H0, | ||
output_file=output_file_H0, | ||
multirun=multirun, |
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.
multirun=false
path=calc_dir, | ||
input_file=input_file_H2, | ||
output_file=output_file_H2, | ||
multirun=multirun, |
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.
multirun=false
@@ -132,6 +136,72 @@ def test_SinglePointFW_not_defaults(self): | |||
self.assertEqual(firework.parents, []) | |||
self.assertEqual(firework.name, "special single point") | |||
|
|||
def test_ProtonEnergyFW_not_defaults(self): |
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.
It looks like this test is using all default values, so it should be named "test_ProtonEnergyFW_defaults"
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.
Hey @Zhuoying . Just circling back on this. Can you take some time out for merging this? Thanks a lot! |
@rdguha1995 Thanks for the reminder. I am re-trigger the tests and will merge it after all tests pass. |
Hey @Zhuoying , can you help me with the current errors? They are not in codes I have played with. What would be the best way to solve this? |
@rdguha1995 Yes, the error seems to be induced by the recent change in pymatgen.io.feff (https://github.com/materialsproject/pymatgen/blob/c1e47a78bcf5d4f23b11b83570adb861f47cb183/pymatgen/io/feff/sets.py#L357), not your part. |
CI fix submitted in #760. |
Summary
For this custom Firework the electronic energy of a proton in a specific solvent environment is approximated. Since a proton has 0 electrons, running a QChem job would yield an error. The energy can be approximated by:
This Firework combines these two calculations and adds a task doc to the DB with the separate calculation details and the effective energy after subtraction.
TODO (if any)