Skip to content

Commit

Permalink
tweak Yb_2 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Jan 18, 2024
1 parent 86b40f4 commit f0f17b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pymatgen/io/vasp/sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def structure(self, structure: Structure | None) -> None:
uses_Yb_2_psp = potcar_settings.get("Yb", None) == "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"
"The structure contains Ytterbium (Yb) and this InputSet uses Yb_2 pseudo-potential.\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,
Expand Down
2 changes: 1 addition & 1 deletion tests/io/vasp/test_sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def test_yb_2_warning(input_set: VaspInputSet) -> None:
with pytest.warns(BadInputSetWarning) as record:
input_set(structure)

expected = "The structure contains Ytterbium (Yb) and this InputSet uses the Yb_2"
expected = "The structure contains Ytterbium (Yb) and this InputSet uses Yb_2 pseudo-potential"
assert expected in str(record[0].message)


Expand Down

0 comments on commit f0f17b5

Please sign in to comment.