Skip to content

Remove is_rare_earth_metal #4243

@jevandezande

Description

@jevandezande

Python version

All

Pymatgen version

Master

Current behavior

Throws deprecation warning in CI

Expected Behavior

Removal

Deadline to remove 2025-01-01

@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions