Skip to content

Commit faf0a41

Browse files
committed
update grace period
1 parent 7819985 commit faf0a41

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

docs/compatibility.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pymatgen/core/periodic_table.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -697,12 +697,19 @@ def is_post_transition_metal(self) -> bool:
697697

698698
@property
699699
def is_rare_earth_metal(self) -> bool:
700-
"""True if element is a rare earth metal, including Scandium (Sc),
701-
Yttrium (Y), Lanthanides (La) series and Actinides (Ac) series.
700+
"""True if element is a rare earth metal, Lanthanides (La) series and Actinides (Ac) series.
701+
702+
WARNING: This property would be updated to include Scandium (Sc) and
703+
Yttrium (Y) after 2025-05-15.
702704
703705
Reference: https://en.wikipedia.org/wiki/Rare-earth_element.
704706
"""
705-
return self.is_lanthanoid or self.is_actinoid or self.symbol in {"Sc", "Y"}
707+
warnings.warn(
708+
"Y and Sc would be considered rare earth metal after 2025-05-15.",
709+
stacklevel=2,
710+
)
711+
712+
return self.is_lanthanoid or self.is_actinoid # or self.symbol in {"Sc", "Y"}
706713

707714
@property
708715
def is_metal(self) -> bool:

0 commit comments

Comments
 (0)