Pymatgen

If you are not familiar with building atomic structure using Pymatgen, please read the following tutorials:

Keyword structure in Batoms object is uesd to load a Pymatgen structure.

Molecule:

>>> from batoms import Batoms
>>> from pymatgen.core.structure import Molecule
>>> co = Molecule(["C","O"], [[0.0, 0.0, 0.0], [0.0, 0.0, 1.2]])
>>> co = Batoms(label = 'co', from_pymatgen = co)
../../_images/ase-co.png

Crystal:

>>> from batoms import Batoms
>>> from pymatgen.core import Lattice, Structure
>>> fe = Structure(Lattice.cubic(2.8), ["Fe", "Fe"], [[0, 0, 0], [0.5, 0.5, 0.5]])
>>> fe = Batoms(label = 'fe', from_pymatgen = fe)
../../_images/ase-fe.png