pymatgen/structure format

Class: PyMatgenStructureFormat

Conversions

Convert from this format to System

dpdata.System(structure, fmt: Literal['pymatgen/structure'] = None) dpdata.system.System
dpdata.System.from_pymatgen_structure(structure) dpdata.system.System

Convert pymatgen.core.Structure to System.

Parameters:
structurepymatgen.core.Structure

a Pymatgen Structure, containing a structure

Returns:
System

converted system

Convert from System to this format

dpdata.System.to(fmt: Literal['pymatgen/structure'])
dpdata.System.to_pymatgen_structure()

Convert System to Pymatgen Structure obj.

Convert from LabeledSystem to this format

dpdata.LabeledSystem.to(fmt: Literal['pymatgen/structure'])
dpdata.LabeledSystem.to_pymatgen_structure()

Convert System to Pymatgen Structure obj.