-
Notifications
You must be signed in to change notification settings - Fork 53
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
pmg update #1622
Closed
Closed
pmg update #1622
Conversation
This file contains 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
auto-merge was automatically disabled
February 7, 2024 03:40
Pull request was closed
Andrew-S-Rosen
added a commit
that referenced
this pull request
Feb 17, 2024
Closes #1311. This PR allows support for Pymatgen-formatted input sets in the `Vasp` calculator and, by extension, all VASP recipes. The `Vasp` calculator takes a new keyword argument `pmg_input_set: DictSet | None = None` that, if specified, would act in the same was a preset by providing a list of default parameters to use. Any class inheriting from [`pymatgen.io.vasp.sets.DictSet`](https://github.com/materialsproject/pymatgen/blob/main/pymatgen/io/vasp/sets.py) is usable. This also means we can use the MP-compatible, pymatgen input sets directly without having to try and duplicate them 1:1 in `quacc`, such as by doing `pmg_input_set = MPRelaxSet`. I also renamed `mp_relax_job` to `mp_metagga_relax_job` (and similar for the rest) to allow for a future addition of the GGA MP workflows. Requires: A new release of pymatgen to be minted (bumped in #1622). Example: ```python from ase.build import bulk from quacc.calculators.vasp import Vasp from pymatgen.io.vasp.sets import MPRelaxSet atoms = bulk("Fe") * (2, 1, 1) atoms[0].symbol = "O" calc = Vasp(atoms, pmg_input_set=MPRelaxSet) print(calc.parameters) ``` --------- Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
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.
TODO: also bump monty