def value(self):
        """ Return current value for the metric """
        if self.buffer:
            return np.quantile(self.buffer, self.quantile)
        else:
            return 0.0
def value ( self ) : if self . buffer : return np . quantile ( self . buffer , self . quantile ) else : return 0.0
Return current value for the metric