.. oe:namespace:: OEIUPAC

.. meta::
   :keywords: OESetCIPStereo

.. oe:function:: OESetCIPStereo

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

      .. oe:api::

         bool OESetCIPStereo(OEChem::OEMolBase& mol, OEChem::OEAtomBase* atm,
                             char s)
         bool OESetCIPStereo(OEChem::OEMolBase& mol, OEChem::OEBondBase* bnd,
                             char s)

   .. oe:language:: python

      .. oe:api:: python

         OESetCIPStereo(mol: Union[OEGraphMol,OEMol,OEQMol], atm: OEAtomBase,
                        s: str) -> bool
         OESetCIPStereo(mol: Union[OEGraphMol,OEMol,OEQMol], bnd: OEBondBase,
                        s: str) -> bool

   Set the internal *OEChem* stereochemistry from the given CIP stereo
   descriptor. For :ref:`OEAtomBase <OEChem_OEAtomBase>` the descriptor must be
   either 'R' or 'S', and for :ref:`OEBondBase <OEChem_OEBondBase>`  the descriptor
   must be either 'E' or 'Z'. Returns ``true`` if the stereochemistry was
   successfully set, and ``false`` otherwise: *i.e.* the descriptor was
   invalid or the specified atom or bond was not a CIP stereo center. 
