hall_symbol
Hall space group symbols.
A Hall symbol (Hall, Acta Cryst. A37, 517, 1981) lists generators explicitly:
[-]L N1 [N2 [N3 [N4]]] [V]
L is the lattice centring (P A B C I R S T F), with a leading '-' adding the inversion at the origin. Each N is a matrix symbol: an optional '-' for an improper rotation, the order (1 2 3 4 6), an optional axis (x y z, ' or " for 2-fold face diagonals, * for the 3-fold body diagonal) and translation symbols (a b c n u v w d, or a screw digit). V is a change of basis, either an origin shift in twelfths "(0 0 1)" or an operation "(x,y,z+1/4)" (Grosse-Kunstleve, Acta Cryst. A55, 383, 1999).
All arithmetic is exact: rotations are integer matrices and translations
Fractions.
hall_generators(symbol)
The generators of a Hall symbol as exact Seitz pairs.
Returns:
| Type | Description |
|---|---|
|
the generators, as (rotation, translation) pairs of an integer |
|
|
(3, 3) matrix and three |
|
|
of basis; and the change of basis as such a pair, or None |
Source code in chmpy/crystal/hall_symbol.py
parse_hall_symbol(symbol)
All operations of the space group a Hall symbol describes.
One operation per coset of the integer lattice, so centring translations
are included (as in SpaceGroup.symmetry_operations).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbol
|
str
|
Hall symbol, e.g. "-P 2ybc" or "P 31 2 (0 0 4)" |
required |
Returns:
| Type | Description |
|---|---|
list[SymmetryOperation]
|
list of SymmetryOperation, sorted by integer code |