RoboCryS

0.2.13 · active · verified Thu Apr 16

RoboCryS (robocrys) is a Python library for the automatic generation of human-readable descriptions of crystal structures. It is currently at version 0.2.13 and sees active development with minor releases every few months, often including dependency updates and compatibility fixes.

Common errors

Warnings

Install

Imports

Quickstart

This example demonstrates how to create a `pymatgen.core.Structure` object and use `robocrys.descriptor.CrystalDescriptor` to generate a textual description of the crystal structure.

from pymatgen.core import Structure
from robocrys.descriptor import CrystalDescriptor

# Example structure (SrTiO3 perovskite, from space group and lattice parameters)
structure = Structure.from_spacegroup(221, 5.5, ['Sr', 'Ti', 'O'], [[0,0,0], [0.5,0.5,0.5], [0.5,0,0]])

descriptor = CrystalDescriptor()
description = descriptor.describe(structure)
print(description)

view raw JSON →