-
Notifications
You must be signed in to change notification settings - Fork 873
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
Revert to Yb_2
on pre-PBE_54
input sets
#2972
Merged
Merged
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
… failing PMG_VASP_PSP_DIR
janosh
commented
May 5, 2023
pymatgen/io/vasp/sets.py
Outdated
Comment on lines
338
to
346
struct_has_Yb = any(specie.symbol == "Yb" for site in structure for specie in site.species) | ||
uses_Yb_2_psp = self.CONFIG["POTCAR"]["Yb"].lower() == "yb_2" | ||
if struct_has_Yb and uses_Yb_2_psp: | ||
warnings.warn( | ||
"The structure contains Ytterbium (Yb) and this InputSet uses the Yb_2 PSP.\n" | ||
"Yb_2 is known to often give bad results since Yb has oxidation state 3+ in most compounds.\n" | ||
"See https://github.com/materialsproject/pymatgen/issues/2968 for details.", | ||
BadInputSetWarning, | ||
) |
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.
@shyuep As discussed, I'm reverting the change from Yb_2 to Yb_3 on pre-PBE_54 input sets and issuing a strong warning instead.
@jmmshn asked for a new release which I think we're ready for once this is merged. |
…phase diagram to compute no_mixing_energy!"
… requiring POTCARs to pass
fix 3 PIE804 Unnecessary `dict` kwargs
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.
Follow up to #2969.
Instead of changing from
Yb_2
toYb_3
everywhere, we issue a warning in pre-PBE_54
input sets thatYb_2
will give very bad results for most systems since Yb is usually Yb3+.Reason: The better fix
Yb_3
only became available in thePBE_54
set of PSPs so using it in pre-PBE_54
input sets effectively means you can't run Yb compounds.Closes #2970 , closes #2971.