Skip to content

Commit

Permalink
Remove is_rare_earth_metal from periodic_table.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jdewasseigeosium committed Jan 2, 2025
1 parent 1abc459 commit 25f796e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/pymatgen/core/periodic_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,19 +754,6 @@ def is_rare_earth(self) -> bool:
"""
return self.is_lanthanoid or self.is_actinoid or self.symbol in {"Sc", "Y"}

@property
@deprecated(
is_rare_earth,
message="is_rare_earth is corrected to include Y and Sc.",
deadline=(2025, 1, 1),
)
def is_rare_earth_metal(self) -> bool:
"""True if element is a rare earth metal, Lanthanides (La) series and Actinides (Ac) series.
This property is Deprecated, and scheduled for removal after 2025-01-01.
"""
return self.is_lanthanoid or self.is_actinoid

@property
def is_metal(self) -> bool:
"""True if is a metal."""
Expand Down

0 comments on commit 25f796e

Please sign in to comment.