.. _PyMatgenStructureFormat:

pymatgen/structure format
=========================

Class: :class:`PyMatgenStructureFormat <dpdata.plugins.pymatgen.PyMatgenStructureFormat>`

Conversions
-----------

.. _PyMatgenStructureFormat_from_system:

Convert from this format to System
``````````````````````````````````

.. py:function:: dpdata.System(structure, fmt: Literal['pymatgen/structure'] = None) -> dpdata.system.System
   :noindex:
.. py:function:: dpdata.System.from_pymatgen_structure(structure) -> dpdata.system.System
   :noindex:

   
Convert pymatgen.core.Structure to System.


:Parameters:

    **structure** : pymatgen.core.Structure
        a Pymatgen Structure, containing a structure



:Returns:

    System
        converted system















.. _PyMatgenStructureFormat_to_system:

Convert from System to this format
``````````````````````````````````

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

   
Convert System to Pymatgen Structure obj.




















.. _PyMatgenStructureFormat_to_labeled_system:

Convert from LabeledSystem to this format
`````````````````````````````````````````

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

   
Convert System to Pymatgen Structure obj.


















