Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove is_rare_earth_metal from ElementBase (periodic_table.py) #4242

Conversation

jdewasseigeosium
Copy link
Contributor

@jdewasseigeosium jdewasseigeosium commented Jan 2, 2025

Summary

Remove deprecated is_rare_earth_metal from ElementBase in periodic_table.py.
This function was deprecated here since end of May 2024. Confirming it’s not used anymore elsewhere in the code & I removed it from the docs as well. I just removed one line from docs/pymatgen.md but it seems like git interpreted it as more.

Major changes:

  • fix 1: remove deprecated function is_rare_earth_metal from ElementBase

Checklist

  • Google format doc strings added. Check with ruff.
  • Type annotations included. Check with mypy.
  • Tests added for new features/fixes.
  • If applicable, new classes/functions/modules have duecredit @due.dcite decorators to reference relevant papers by DOI (example)

Tip: Install pre-commit hooks to auto-check types and linting before every commit:

pip install -U pre-commit
pre-commit install

@jdewasseigeosium jdewasseigeosium force-pushed the jdewasseige/rm_deprecated_is_rare_earth_metal branch from 6eec3ef to 25f796e Compare January 2, 2025 11:26
@chiang-yuan
Copy link
Contributor

chiang-yuan commented Jan 2, 2025

this will close #4243

@JaGeo
Copy link
Member

JaGeo commented Jan 3, 2025

It would be great if this could be merged. Currently, all our imports from pymatgen where composition is used lead to failures. Additionally, a new release would be very helpful.

Thank you!

@shyuep shyuep merged commit e2baa68 into materialsproject:master Jan 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants