def METHOD_NAME(self, *args):
    def integ(x):
        val = self._pdf(x, *args)
        return val*log(val)
    entr = -integrate.quad(integ, self.a, self.b)[0]
    if not np.isnan(entr):
        return entr
    else:
        raise ValueError("Problem with integration.  Returned nan.")