.. include:: ../substitutions

.. oe:namespace:: OEGraphSim

.. meta::
   :keywords: OEIsSameFPType

.. oe:function:: OEIsSameFPType

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

      .. oe:api::

         bool OEIsSameFPType(const OEFingerPrint& fpA, const OEFingerPrint& fpB)

   .. oe:language:: python

      .. oe:api:: python

         OEIsSameFPType(fpA: OEFingerPrint, fpB: OEFingerPrint) -> bool

   Returns whether or not the types (:ref:`OEFPTypeBase <OEGraphSim_OEFPTypeBase>`)
   of the two :ref:`OEFingerPrint <OEGraphSim_OEFingerPrint>` objects are the same.

   .. note::

      Two user-defined path fingerprints have the same type only
      if they have been generated with the same parameters (*i.e.* number
      of bits, minimum and maximum path size and atom and bond typing
      options) and have the same version number.

   .. warning::

      Similarity measure functions (such as :oe:func:`OEGraphSim::OETanimoto`)
      only work on fingerprints with identical type
      (:ref:`OEFPTypeBase <OEGraphSim_OEFPTypeBase>`).

