def max ( self ) : return int ( self . _max ) if not np . isinf ( self . _max ) else self . _max
the inde of the max in python
Returns the maximum value of the domain .
def max(self):
        """
        Returns the maximum value of the domain.

        :rtype: `float` or `np.inf`
        """
        return int(self._max) if not np.isinf(self._max) else self._max