Skip to content

PyMatGenObject

Objects of this type store pymatgen object types.

Creating a PyMatGen object

[Copy Code](javascript:void(0)) Python
PyMatGenObject( name : str ="Object Name", description: Optional[str] = "Object description", native: pymatgen.core.Structure = ... )

where

  • name is the name of the object in the Data Catalog.
  • description is the description of the object in Data Catalog.
  • native is a pymatgen.core.Structure object.

Getting the object data

[Copy Code](javascript:void(0)) Python
def native(self) -> pymatgen.core.Structure

This function returns a pymatgen.core.Structure object from the Data Catalog.