Closed kiryph closed 9 months ago
HI, @kiryph
The function of pyxtal.symmetry.check_wyckoff_position
was created by my student long ago to run some internal checking.
Can I confirm that you want to have a function which can tell you the corresponding wyckoff symbol?
>>> from pyxtal.symmetry import Group
>>> g = Group(5)
>>> wp = g.get_wyckoff_position_from_xyz([0, 0.5, 0.5])
>>> wp.get_label()
'2b'
If this is your goal, we may need to create such a utility.
Can I confirm that you want to have a function which can tell you the corresponding wyckoff symbol?
Yes, that is correct. I will try your recent commit https://github.com/qzhu2017/PyXtal/commit/145c37c409b4acf27defb5d66987801a09548fd8 and will let you know if I get the expected results from get_wyckoff_position_from_xyz
. Thank you.
Consider the point (1/2, 1/2, 1/2) in different space groups and which Wyckoff position the point belongs to (always assuming conventional unit cell choices):
The same error for
pyxtal.symmetry.Group(2)
andpyxtal.symmetry.Group(3)
.Assign Wyckoff position to coordinate
Actually, I am not sure about the possible/intended usage of the method
pyxtal.symmetry.check_wyckoff_position(...)
.Could I use it to assign a Wyckoff position to a coordinate? Do I really need a list of points or can I give a single representative (point) of an orbit to get the Wyckoff index which can be used to get the ITC Wyckoff letter with
get_label()
:Expectation
compare Bilbao WPASSIGN https://www.cryst.ehu.es/cryst/wpassign.html
The standard setting for C2 should be unique axis b, cell choice 1 as given in ITC Vol. A.
Observation
First of all, for space group 5, I do not get an error but no successful assignment to an index. Even if the unit cell choice is different, the assignment to the index of the general position should happen.
I suspect there is another issue next to the error. But maybe I use it incorrectly and this is actually the expected result.
Any fix, clarification is appreciated. Thanks.