space_group
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 |
Source code in chmpy/crystal/space_group.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 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 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 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 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 |
|
cif_section: str
property
Representation of the SpaceGroup in CIF files
crystal_system: str
property
The crystal system of the space group e.g. triclinic, monoclinic etc.
latt: int
property
The SHELX LATT number associated with this space group. Returns a negative if there is no inversion.
Options are
Examples:
>>> P1 = SpaceGroup(1)
>>> P21c = SpaceGroup(14)
>>> I41 = SpaceGroup(14)
>>> R3bar = SpaceGroup(148)
>>> P1.latt
-1
>>> P21c.latt
1
>>> R3bar.latt
3
Returns:
Name | Type | Description |
---|---|---|
int |
int
|
the SHELX LATT number of this space group |
lattice_type: str
property
the lattice type of this space group e.g. rhombohedral, hexagonal etc.
laue_class: str
property
the Laue class of the point group associated with this space group
pg
property
alias for self.point_group
point_group
property
the point group of this space group
sym: str
property
alias for self.symbol
symbol_unicode: str
property
the space group symbol with unicode subscripts
symops
property
alias for self.symmetry_operations
apply_all_symops(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
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:
Name | Type | Description |
---|---|---|
SpaceGroup |
the matching |
Source code in chmpy/crystal/space_group.py
has_hexagonal_rhombohedral_choices()
returns true if this space group could be represented as hexagonal or rhombohedral
ordered_symmetry_operations()
The symmetry operations of this space group in order (with identiy first)