-
Notifications
You must be signed in to change notification settings - Fork 876
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
Incorrect SpaceGroup symbol attribute for 16 space group types #3845
Comments
It affects the Materials Project website as well. |
Before @kaueltzen starts to correct it, we would like to ask for feedback on this as this will be a breaking change with potentially major effects. The symbol is clearly wrong. Nevertheless, people work with the wrong symbol. Any thoughs from MP side: @munrojm @tschaume @yang-ruoxi ? Thanks in advance. |
@shyuep ? |
We will start fixing it tomorrow as it is a major bug. Please let us know by end of this day if you object. |
@JaGeo thanks for tagging us. We're good with the change from MP's side. |
Actually, there are still open questions and I would appreciate feedback on them by @shyuep or @janosh : If we decide on the standard Hermann-Mauguin symbol as the Also, I have a question regarding the pymatgen/pymatgen/symmetry/groups.py Line 232 in 74e692b
The Also, regarding SYMMOPS.json: the key Thanks in advance (: |
Hi all, We are also happy to just correct these issues according to @kaueltzen 's suggestions. It will, however, be a breaking change. But as this seems wrong, we should correct it. |
Python version
3.10
Pymatgen version
2024.5.1 or master
Operating system version
No response
Current behavior
output of minimal example:
Expected Behavior
For the minimal example provided below I would expect
len(err)
to be zero, meaning that every SpaceGroup symbol attribute provides a valid string that can be used to instantiate again a SpaceGroup object.However, this is not the case for 16 space group types (see above). They all differ from their correct Hermann Mauguin symbol by an additionally appended "1" (resulting even in an impossible fourth symmetry direction / blickrichtung for most of them).
The symbol attribute is set here
pymatgen/pymatgen/symmetry/groups.py
Line 226 in 74e692b
I am not sure what the "universal" Hermann Mauguin symbol (
"universal_h_m"
key) and the additional:1
represents and why the key"hermann_mauguin"
is not used instead, but the current code gives wrong space group symbols in 16 cases.Minimal example
Relevant files to reproduce this bug
No response
The text was updated successfully, but these errors were encountered: