-
Notifications
You must be signed in to change notification settings - Fork 23
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
[WIP] Minor: Automatically track available BAC and model chemistry in Arkane #396
Conversation
arc/main.py
Outdated
if sp_level not in ['ccsd(t)-f12/cc-pvdz-f12', 'ccsd(t)-f12/cc-pvtz-f12', 'ccsd(t)-f12/cc-pvqz-f12', | ||
'b3lyp/cbsb7', 'b3lyp/6-311g(2d,d,p)', 'b3lyp/6-311+g(3df,2p)', 'b3lyp/6-31g(d,p)']\ | ||
and self.use_bac: | ||
sp_levels_with_bac_support = ['ccsd(t)-f12/cc-pvdz-f12', |
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.
can we automate this somehow instead of hard coding and manually updating it?
I can give you a parameter with the path to the RMG-db of the user, we'll need to write a parser to the file.
If you want to merge this in ASAP instead, that's also 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 all you need to do is import pbac
and mbac
from arkane.encorr.data
. These are dictionaries with model chemistry as keys. Therefore, you can generate a list of model chemistries with BAC support automatically and on-the-fly
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.
Many thanks. I have updated the code using pbac
and mbac
. @amarkpayne Is there also a dictionary of model chemistry in Arkane we can import to improve line 760?
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 any model chemistry we have in Arkane will at least have atom energies (I don't know of any that we have BACs for but not atom energies, that would be very strange) so you could look at the atom energy keys
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.
Codecov Report
@@ Coverage Diff @@
## master #396 +/- ##
=======================================
Coverage 54.54% 54.54%
=======================================
Files 34 34
Lines 11904 11905 +1
Branches 3633 3633
=======================================
+ Hits 6493 6494 +1
Misses 4458 4458
Partials 953 953
Continue to review full report at Codecov.
|
f947ce7
to
24071fc
Compare
Quick patch
This PR needs ReactionMechanismGenerator/RMG-database#404 to be merged. |
@oscarwumit, is there anything here not in #399 that we'd like to implement? |
We can close this PR, but please keep the branch as this is need for using BAC corrections for dlpno/ccsd(t)/def2tzvp//wb97xd/defttzvp, which is not merged into RMG yet. |
OK |
Automatically track available BAC and model chemistry in Arkane.