Skip to content

Commit e2baa68

Browse files
Remove is_rare_earth_metal from ElementBase (periodic_table.py) (#4242)
* Remove is_rare_earth_metal from periodic_table.py * Rm deprecated from monty * Rm is_rare_earth_metal from docs/pymatgen.md
1 parent 9b4623d commit e2baa68

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

docs/pymatgen.md

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

src/pymatgen/core/periodic_table.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from typing import TYPE_CHECKING, overload
1515

1616
import numpy as np
17-
from monty.dev import deprecated
1817
from monty.json import MSONable
1918

2019
from pymatgen.core.units import SUPPORTED_UNIT_NAMES, FloatWithUnit, Ha_to_eV, Length, Mass, Unit
@@ -754,19 +753,6 @@ def is_rare_earth(self) -> bool:
754753
"""
755754
return self.is_lanthanoid or self.is_actinoid or self.symbol in {"Sc", "Y"}
756755

757-
@property
758-
@deprecated(
759-
is_rare_earth,
760-
message="is_rare_earth is corrected to include Y and Sc.",
761-
deadline=(2025, 1, 1),
762-
)
763-
def is_rare_earth_metal(self) -> bool:
764-
"""True if element is a rare earth metal, Lanthanides (La) series and Actinides (Ac) series.
765-
766-
This property is Deprecated, and scheduled for removal after 2025-01-01.
767-
"""
768-
return self.is_lanthanoid or self.is_actinoid
769-
770756
@property
771757
def is_metal(self) -> bool:
772758
"""True if is a metal."""

0 commit comments

Comments
 (0)