.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OETriposAtomTypeNames

.. oe:function:: OETriposAtomTypeNames

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

      .. oe:api::

         bool OETriposAtomTypeNames(OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

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

   Sets the string atom type property of every atom in a molecule to its
   Tripos Sybyl atom type.  The symbolic atom type of each atom is determined by
   :oe:func:`OEChem::OETriposAtomType` and then is converted from integer
   index to type name using :oe:func:`OEChem::OETriposTypeName`.  The
   string 'atom type property' is set using the :oe:meth:`OEChem::OEAtomBase::SetType`
   method. The 'atom type name' property may be retrieved using the
   :oe:meth:`OEChem::OEAtomBase::GetType` method. This function returns ``false`` if any
   atom was assigned with ``"Du"``, and returns ``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.

   .. seealso::

      * :oe:func:`OEChem::OETriposAtomTypes`
      * :oe:func:`OEChem::OETriposTypeNames`
      * :oe:func:`OEChem::OETriposAtomNames`

