ase
ase_to_crystal(atoms, **kwargs)
Convert an ASE Atoms object to a Crystal object. Assumes it is in P1
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
atoms
|
ASE Atoms object representing the crystal structure |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Crystal |
Crystal object with unit_cell, space_group, and asymmetric_unit |
Source code in chmpy/ext/ase.py
ase_to_molecule(atoms, **kwargs)
Convert an ASE Atoms object to a Molecule object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
atoms
|
ASE Atoms object representing the molecule |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Molecule |
Molecule object atoms and position information |
Source code in chmpy/ext/ase.py
crystal_to_ase(crystal, **kwargs)
Convert a Crystal object to an ASE Atoms object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
crystal
|
Crystal object with unit_cell, space_group, and asymmetric_unit |
required |
Returns:
| Type | Description |
|---|---|
|
ase.Atoms: ASE Atoms object representing the crystal structure |
Source code in chmpy/ext/ase.py
molecule_to_ase(mol, **kwargs)
Convert a Molecule object to an ASE Atoms object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mol
|
a chmpy Molecule object |
required |
Returns:
| Type | Description |
|---|---|
|
ase.Atoms: ASE Atoms object representing the molecule |