Skip to content

Implement attribute setting for PeriodicSite to route through propert…#18

Open
cogsworth37 wants to merge 1 commit intomaterialsproject:mainfrom
cogsworth37:2339-fix-footgun
Open

Implement attribute setting for PeriodicSite to route through propert…#18
cogsworth37 wants to merge 1 commit intomaterialsproject:mainfrom
cogsworth37:2339-fix-footgun

Conversation

@cogsworth37
Copy link
Copy Markdown

@cogsworth37 cogsworth37 commented Apr 7, 2026

…ies, ensuring persistence across serialization and structure sorting.

Summary

Major changes:

fixes materialsproject/pymatgen#2339

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

…ies, ensuring persistence across serialization and structure sorting.
@cogsworth37 cogsworth37 marked this pull request as ready for review April 7, 2026 13:28
@cogsworth37 cogsworth37 requested a review from shyuep as a code owner April 7, 2026 13:28
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.

Structure.get_sorted_structure does not preserve magmom site property

1 participant