.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEAtomSetMDLParity

.. oe:function:: OEAtomSetMDLParity

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

      .. oe:api::

         bool OEAtomSetMDLParity(OEAtomBase* atm, unsigned int)

   .. oe:language:: python

      .. oe:api:: python

         OEAtomSetMDLParity(atm: OEAtomBase, arg2: int) -> bool

   This function may be used to set the 'MDL parity' value associated
   with an atom.  The interpretation of this unsigned integer is
   described in the MDL file format documentation, and will appear in the
   appropriate atom parity column of the atom connection tables in MDL
   file formats.  This value may be retrieved using the
   :oe:func:`OEChem::OEAtomGetMDLParity` function.

   Typically, these values is either read from MDL connection tables or
   set by *OEChem* via the :oe:func:`OEChem::OEMDLPerceiveParity` and
   :oe:func:`OEChem::OEMDLClearParity` functions.

