Skip to content

Preserve symbol distinction when replicating Phonopy - #1120

Closed
rpinho wants to merge 2 commits into
phonopy:mainfrom
rpinho:fix-replicate-species-symmetry
Closed

rpinho wants to merge 2 commits into
phonopy:mainfrom
rpinho:fix-replicate-species-symmetry

Conversation

@rpinho

@rpinho rpinho commented Nov 18, 2026

Copy link
Copy Markdown

Phonopy.replicate drops distinguish_symbol_index when reconstructing a calculation. With the Quantum ESPRESSO NaCl species fixture, replication merges the labeled chlorine sites in the symmetry search and reduces the displacement centers from four to two. Forward the option to the constructor so the replica keeps the selected species distinctions. The regression compares atom maps, symmetry operations and generated displacement centers, with the default setting as a control. This patch was prepared with AI assistance.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N

@atztogo

atztogo commented Nov 24, 2026

Copy link
Copy Markdown
Member

Thank you for this fix as well.

Making a new PR was less work for me than asking for changes here, so the fix is in #1130. It also passes lang, which was missing too, and deprecates hermitianize_dynamical_matrix instead of passing it. I'm closing this PR without merging it.

@atztogo atztogo closed this Nov 24, 2026
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