Revert to Yb_2 on pre-PBE_54 input sets#2972
Merged
Merged
Conversation
… failing PMG_VASP_PSP_DIR
janosh
commented
May 5, 2023
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, | ||
| ) |
Member
Author
There was a problem hiding this comment.
@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.
Member
Author
|
@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
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.
Follow up to #2969.
Instead of changing from
Yb_2toYb_3everywhere, we issue a warning in pre-PBE_54input sets thatYb_2will give very bad results for most systems since Yb is usually Yb3+.Reason: The better fix
Yb_3only became available in thePBE_54set of PSPs so using it in pre-PBE_54input sets effectively means you can't run Yb compounds.Closes #2970 , closes #2971.