symmetry
point_group_symmetry_operatorsT
module-attribute
point_group_symmetry_operatorsT: dict[str, ndarray] = unpickle(point_group_symmetry_operatorT_location)
A mapping of the point group name (in Hermann-Mauguin notation) to the corresponding symmetry operators Formatted as {'symmetry': rotations[N, 3, 3], ...} where the rotations are pre-transposed to match requirements of np.matmul(coords, rotation)
space_group_symmetry_operatorsT
module-attribute
space_group_symmetry_operatorsT: dict[str, ndarray] = unpickle(space_group_symmetry_operatorT_location)
A mapping of the space group name (in Hermann-Mauguin notation) to the corresponding symmetry operators Formatted as {'symmetry': (rotations[N, 3, 3], translations[N, 1, 3]), ...} where the rotations are pre-transposed to match requirements of np.matmul(coords, rotation)
generate_cryst1_record
generate_cryst1_record(dimensions: tuple[float, float, float, float, float, float], space_group: str) -> str
Format the CRYST1 record from specified unit cell dimensions and space group for a .pdb file
Parameters:
-
dimensions
(tuple[float, float, float, float, float, float]
) –Containing a, b, c (Angstroms) alpha, beta, gamma (degrees)
-
space_group
(str
) –The space group of interest in compact format
Returns: The CRYST1 record
Source code in symdesign/utils/symmetry.py
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 |
|
get_ptgrp_sym_op
get_ptgrp_sym_op(sym_type: str, expand_matrix_dir: Union[str, bytes] = os.path.join(putils.sym_op_location, 'POINT_GROUP_SYMM_OPERATORS')) -> List[List]
Get the symmetry operations for a specified point group oriented in the canonical orientation
Parameters:
-
sym_type
(str
) –The name of the symmetry
-
expand_matrix_dir
(Union[str, bytes]
, default:join(sym_op_location, 'POINT_GROUP_SYMM_OPERATORS')
) –The disk location of a directory with symmetry name labeled expand matrices
Returns: The rotation matrices to perform point group expansion
Source code in symdesign/utils/symmetry.py
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 |
|