-
Notifications
You must be signed in to change notification settings - Fork 882
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
[Bug]: Inconsistent behaviour with get_symmetrized_structure
#3340
Comments
Hi @kavanase! It seems that your supercell is quite large and if you are saving it as a |
It might also be worth talking to the developers of For symmetry issues, it’s also worth trying some different versions of spglib just in case there’s been a regression etc. |
As spglib developer side, I think it may be possible that spglib returns another space group for a supercell than that for the primitive structure. Spglib only returns rotation matrices with integers. So if the supercell matrix breaks the symmetry, corresponding result may change. |
Btw, I checked that this issue is still not fixed with the latest versions of These are the relevant structures, needed to reproduce this issue (to run the code in the notebook): Regarding @lan496 :
![]() ![]() ![]() |
Email (Optional)
[email protected]
Version
v2023.9.2
Which OS(es) are you using?
What happened?
When using
SpacegroupAnalyzer.get_symmetrized_structure()
, I noticed some odd behavior.If the input structure is a non-diagonal supercell of the primitive structure, the space group symmetry of the material is correctly determined (and returns the correct primitive structure), but the
SymmetrizedStructure
differs from that obtained when inputting the primitive structure.In the example case below, this now outputs additional 'inequivalent' sites, which are in fact equivalent in the primitive structure. I've witnessed this now in a couple of different material systems, with non-diagonal supercells.
I'm not sure if this is the desired behaviour, but I wouldn't have guessed so.
Notebook and PDF attached below.
pymatgen_symm_structure_PR.pdf
pymatgen_symm_structure_PR.ipynb.zip
Code snippet
No response
Log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: