Adding SBH17 surface barriers benchmark#375
Open
gkleryoung wants to merge 1 commit intoddmms:mainfrom
Open
Conversation
Collaborator
|
looks really good! @gkleryoung would you be able to send us the input data for the calculation so we can upload it? |
|
|
||
| def get_system_names() -> list[str]: | ||
| """ | ||
| Get list of X23 system names. |
Collaborator
There was a problem hiding this comment.
Suggested change
| Get list of X23 system names. | |
| Get list of SBH17 system names. |
Comment on lines
+38
to
+51
| calc = model.get_calculator() | ||
|
|
||
| # Do not want D3 as references here are dispersionless PBE | ||
| # calc = model.add_d3_calculator(calc) | ||
|
|
||
| # Download SBH17 dataset | ||
| # sbh17_dir = ( | ||
| # download_s3_data( | ||
| # key="inputs/surfaces/sbh17/sbh17.zip", | ||
| # filename="sbh17.zip", | ||
| # ) | ||
| # / "sbh17" | ||
| # ) | ||
| sbh17_dir=Path("/home/gk504/localCodeFolder/proj-other/ml-peg-contrib/sbh17") |
Collaborator
There was a problem hiding this comment.
Suggested change
| calc = model.get_calculator() | |
| # Do not want D3 as references here are dispersionless PBE | |
| # calc = model.add_d3_calculator(calc) | |
| # Download SBH17 dataset | |
| # sbh17_dir = ( | |
| # download_s3_data( | |
| # key="inputs/surfaces/sbh17/sbh17.zip", | |
| # filename="sbh17.zip", | |
| # ) | |
| # / "sbh17" | |
| # ) | |
| sbh17_dir=Path("/home/gk504/localCodeFolder/proj-other/ml-peg-contrib/sbh17") | |
| # Do not want D3 as references here are dispersionless PBE | |
| calc = model.get_calculator() | |
| # Download SBH17 dataset | |
| sbh17_dir = ( | |
| download_s3_data( | |
| key="inputs/surfaces/SBH17/SBH17.zip", | |
| filename="sbh17.zip", | |
| ) | |
| / "sbh17" | |
| ) |
This should work now the data is uploaded
| with open(sbh17_dir / "list") as f: | ||
| systems = f.read().splitlines() | ||
|
|
||
| for system in systems: |
Collaborator
There was a problem hiding this comment.
Could you add tqdm around this so we can get a progress bar?
Collaborator
ElliottKasoar
left a comment
There was a problem hiding this comment.
Thanks for this!
Can you have a go at applying the pre-commit (see https://ddmms.github.io/ml-peg/developer_guide/get_started.html#automatic-coding-style-check (you can also run this outside of making new commits e.g. pre-commit run --all-files), just to make sure all of our tests pass
Comment on lines
+149
to
+150
| SBH17 | ||
| ================================ |
Collaborator
There was a problem hiding this comment.
Suggested change
| SBH17 | |
| ================================ | |
| SBH17 | |
| ===== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pre-review checklist for PR author
PR author must check the checkboxes below when creating the PR.
Summary
Scripts to calculate activation barriers to dissociative chemisorption from the gas phase, for 16 adsorbate-surface combinations, and compare to PBE (dispersionless) datapoints from published SBH17 dataset. This simply requires 2 single-point calculations, as E(barrier) = E(transition state) - E(gas phase) , and the results can be put on a scatter plot.
Linked issue
Resolves #311
Progress
Testing
Models tested:
mace-matpes-r2scan
mace-mp-0a
mace-mp-0b3
mace-mpa-0
mace-omat-0
orb-v3-consv-inf-omat
pet-mad
New decorators/callbacks
No