Space Groups
SpaceGroup
Represent a crystallographic space group, including all necessary symmetry operations in fractional coordinates, the international tables number from 1-230, and the international tables symbol.
Attributes:
Name | Type | Description |
---|---|---|
symbol |
str |
The international tables short space group symbol |
full_symbol |
str |
The full international tables space group symbol |
choice |
str |
The space group choice (if applicable) |
centering |
str |
The space group centering (if applicable) |
schoenflies |
str |
The Schoenflies space group symbol |
centrosymmetric |
bool |
Whether or not the space group is centrosymmetric |
symmetry_operations |
List[SymmetryOperation] |
List of symmetry operations making up this space group |
cif_section: str
property
readonly
Representation of the SpaceGroup in CIF files
crystal_system: str
property
readonly
The crystal system of the space group e.g. triclinic, monoclinic etc.
latt: int
property
readonly
The SHELX LATT number associated with this space group. Returns a negative if there is no inversion.
Options are
1: P,
2: I,
3: rhombohedral obverse on hexagonal axes,
4: F,
5: A,
6: B,
7: C
Examples:
1 2 3 4 5 6 7 8 9 10 |
|
Returns:
Type | Description |
---|---|
int |
int: the SHELX LATT number of this space group |
lattice_type: str
property
readonly
the lattice type of this space group e.g. rhombohedral, hexagonal etc.
laue_class: str
property
readonly
the Laue class of the point group associated with this space group
pg
property
readonly
alias for self.point_group
point_group
property
readonly
the point group of this space group
sym: str
property
readonly
alias for self.symbol
symbol_unicode: str
property
readonly
the space group symbol with unicode subscripts
symops
property
readonly
alias for self.symmetry_operations
apply_all_symops(self, coordinates)
For a given set of coordinates, apply all symmetry operations in this space group, yielding a set subject to only translational symmetry (i.e. a unit cell). Assumes the input coordinates are fractional.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
coordinates |
ndarray |
(N, 3) set of fractional coordinates |
required |
Returns:
Type | Description |
---|---|
Tuple[np.ndarray, np.ndarray] |
a (MxN) array of generator symop integers and an (MxN, 3) array of coordinates where M is the number of symmetry operations in this space group. |
Source code in chmpy/crystal/space_group.py
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 |
|
from_symmetry_operations(symops, expand_latt=None)
classmethod
Find a matching spacegroup for a given set of symmetry operations, optionally treating them as a reduced set of symmetry operations and expanding them based on the lattice type.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
symops |
List[SymmetryOperation] |
a reduced or full list of symmetry operations |
required |
expand_latt |
int |
the SHELX LATT number to expand this list of symmetry operations |
None |
Returns:
Type | Description |
---|---|
SpaceGroup |
the matching |
Source code in chmpy/crystal/space_group.py
279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 |
|
has_hexagonal_rhombohedral_choices(self)
returns true if this space group could be represented as hexagonal or rhombohedral
Source code in chmpy/crystal/space_group.py
275 276 277 |
|
ordered_symmetry_operations(self)
The symmetry operations of this space group in order (with identiy first)
Source code in chmpy/crystal/space_group.py
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 |
|
reduced_symmetry_operations(self)
returns a reduced list of symmetry operations
Source code in chmpy/crystal/space_group.py
271 272 273 |
|