.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEMDLCorrectBondStereo

.. oe:function:: OEMDLCorrectBondStereo

   .. oe:language:: c++ java csharp

      .. oe:api::

         bool OEMDLCorrectBondStereo(OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

         OEMDLCorrectBondStereo(mol: Union[OEGraphMol,OEMol,OEQMol]) -> bool

   This function tries to correct the wedge/hash bond assignment of the
   molecule, inverting or removing wedges and hashes from the connection
   table to avoid inconsistent or ambiguous stereochemistry assignment.
   This function requires that the molecule have 2D coordinates.
   See example in :ref:`Figure: Example of using OEMDLCorrectBondStereo<figure_OEMDLCorrectBondStereo>`

   .. _figure_OEMDLCorrectBondStereo:

   .. figure:: ../images/OEMDLCorrectBondStereo.*
      :scale:  100
      :align:  center

      **Example of using OEMDLCorrectBondStereo: before (A) and after (B) calling the OEMDLCorrectBondStereo function**


