.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OETriposAtomTypes

.. oe:function:: OETriposAtomTypes

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

      .. oe:api::

         bool OETriposAtomTypes(OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

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

   This function sets the integer atom type property of every atom in a
   molecule to its Tripos Sybyl atom type.  The integer atom types are
   taken from the :oe:constns:`OEChem::OETriposType` namespace, as
   determined by the :oe:func:`OEChem::OETriposAtomType` function, and
   each atom is assigned a value using the
   :oe:meth:`OEChem::OEAtomBase::SetIntType` method.  The
   :oe:func:`OEChem::OETriposAtomTypes` function returns ``false`` if any atom
   was assigned :oe:const:`OEChem::OETriposType::Du`, and returns the
   value ``true`` otherwise.

   This function prefers that aromaticity has previously been assigned
   using the Tripos model of aromaticity, see the
   :oe:func:`OEChem::OEAssignAromaticFlags` function.  However, reasonable
   atom types are returned when using other models of aromaticity.
