asymmetric_unit
AsymmetricUnit
Storage class for the coordinates and labels in a crystal asymmetric unit
Attributes:
Name | Type | Description |
---|---|---|
elements |
List[Element]
|
N length list of elements associated with the sites in this asymmetric unit |
positions |
array_like
|
(N, 3) array of site positions in fractional coordinates |
labels |
array_like
|
N length array of string labels for each site |
Source code in chmpy/crystal/asymmetric_unit.py
formula
property
Molecular formula for this asymmetric unit
__init__(elements, positions, labels=None, **kwargs)
Create an asymmetric unit object from a list of Elements and an array of fractional coordinates.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
elements
|
List[Element]
|
N length list of elements associated with the sites |
required |
positions
|
array_like
|
(N, 3) array of site positions in fractional coordinates |
required |
labels
|
array_like
|
labels (array_like): N length array of string labels for each site |
None
|
**kwargs
|
Additional properties (will populate the properties member) to store in this asymmetric unit |
{}
|
Source code in chmpy/crystal/asymmetric_unit.py
from_records(records)
classmethod
Initialize an AsymmetricUnit from a list of dictionary like objects
Parameters:
Name | Type | Description | Default |
---|---|---|---|
records
|
iterable
|
An iterable containing dict_like objects with |
required |