crystallography
crystallography
apply_atom_site_aniso_symmetry_constraints(atom_site_aniso, name_hm, coord_code, _wyckoff_letter, site_fract)
Apply symmetry constraints to anisotropic ADP tensor components.
Uses the Peterse-Palm probe technique to determine which tensor
components are constrained by the site symmetry, then delegates to
cryspy's vibration_constraints to enforce them.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
atom_site_aniso
|
dict[str, float]
|
Dictionary with keys |
required |
name_hm
|
str
|
Hermann-Mauguin symbol of the space group. |
required |
coord_code
|
str | None
|
IT coordinate system code. |
required |
_wyckoff_letter
|
str
|
Wyckoff position letter (unused, reserved). |
required |
site_fract
|
tuple[float, float, float]
|
Fractional coordinates of the atom site. |
required |
Returns:
| Type | Description |
|---|---|
tuple[dict[str, float], tuple[bool, ...]]
|
The atom_site_aniso dictionary with constrained values, and a
6-tuple of booleans indicating which components remain free for
refinement ( |
Source code in src/easydiffraction/crystallography/crystallography.py
575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 | |
apply_atom_site_symmetry_constraints(atom_site, name_hm, coord_code, wyckoff_letter)
Apply symmetry constraints to atom site coordinates.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
atom_site
|
dict[str, Any]
|
Dictionary containing atom position data. |
required |
name_hm
|
str
|
Hermann-Mauguin symbol of the space group. |
required |
coord_code
|
int
|
Coordinate system code. |
required |
wyckoff_letter
|
str
|
Wyckoff position letter. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
The atom_site dictionary with applied symmetry constraints. |
Source code in src/easydiffraction/crystallography/crystallography.py
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 | |
apply_cell_symmetry_constraints(cell, name_hm)
Apply symmetry constraints to unit cell parameters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cell
|
dict[str, float]
|
Dictionary containing lattice parameters. |
required |
name_hm
|
str
|
Hermann-Mauguin symbol of the space group. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, float]
|
The cell dictionary with applied symmetry constraints. |
Source code in src/easydiffraction/crystallography/crystallography.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | |
atom_site_symmetry_fixed_flags(name_hm, coord_code, wyckoff_letter)
Return per-axis flags marking coordinates fixed by site symmetry.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name_hm
|
str
|
Hermann-Mauguin symbol of the space group. |
required |
coord_code
|
int
|
Coordinate system code. |
required |
wyckoff_letter
|
str
|
Wyckoff position letter. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, bool]
|
Mapping |
Source code in src/easydiffraction/crystallography/crystallography.py
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 | |
cell_symmetry_fixed_flags(name_hm)
Return per-key flags indicating which cell parameters are fixed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name_hm
|
str
|
Hermann-Mauguin symbol of the space group. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, bool]
|
Mapping of cell key to |
Source code in src/easydiffraction/crystallography/crystallography.py
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | |
space_groups
Space group reference data.
Loads a gzipped, packaged pickle with crystallographic space-group information. The file is part of the distribution; user input is not involved.