Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

oscarwumit
Copy link
Contributor

@oscarwumit oscarwumit commented May 12, 2020

Automatically track available BAC and model chemistry in Arkane.

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',
Copy link
Member

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

Copy link
Member

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

Copy link
Contributor Author

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?

Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@codecov
Copy link

codecov bot commented May 12, 2020

Codecov Report

Merging #396 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           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           
Impacted Files Coverage Δ
arc/main.py 63.90% <100.00%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2e71a1a...74104a2. Read the comment docs.

@oscarwumit oscarwumit force-pushed the model_chem_update branch from f947ce7 to 24071fc Compare May 12, 2020 21:09
@oscarwumit oscarwumit changed the title Minor: update sp levels with BAC support Minor: Automatically track available BAC and model chemistry in Arakane May 12, 2020
@oscarwumit oscarwumit changed the title Minor: Automatically track available BAC and model chemistry in Arakane Minor: Automatically track available BAC and model chemistry in Arkane May 12, 2020
@oscarwumit oscarwumit changed the title Minor: Automatically track available BAC and model chemistry in Arkane [WIP] Minor: Automatically track available BAC and model chemistry in Arkane May 13, 2020
@oscarwumit
Copy link
Contributor Author

This PR needs ReactionMechanismGenerator/RMG-database#404 to be merged.

@alongd
Copy link
Member

alongd commented Jun 4, 2020

@oscarwumit, is there anything here not in #399 that we'd like to implement?

@oscarwumit
Copy link
Contributor Author

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.

@alongd
Copy link
Member

alongd commented Jun 6, 2020

OK

@alongd alongd closed this Jun 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants