Skip to content

Fix TranslateSitesTransformation#4487

Merged
shyuep merged 1 commit intomaterialsproject:masterfrom
Rastow:fix-translate-sites-transformation
Aug 25, 2025
Merged

Fix TranslateSitesTransformation#4487
shyuep merged 1 commit intomaterialsproject:masterfrom
Rastow:fix-translate-sites-transformation

Conversation

@Rastow
Copy link
Copy Markdown
Contributor

@Rastow Rastow commented Aug 25, 2025

Summary

There was a bug in the TranslateSitesTransformation class. Both index variables in apply_transformation are named identically. The test case did not capture this error. I changed the existing test case to fail when run with the old code and renamed the variables.

Checklist

  • Google format doc strings added. Check with ruff.
  • Type annotations included. Check with mypy.
  • Tests added for new features/fixes.

@Rastow Rastow requested review from mkhorton and shyuep as code owners August 25, 2025 16:42
@shyuep shyuep merged commit d2454dc into materialsproject:master Aug 25, 2025
44 checks passed
@shyuep
Copy link
Copy Markdown
Member

shyuep commented Aug 25, 2025

Thanks.

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.

2 participants