def attribute(self): if len(self.bins) == 0: # No values? Probably should raise an exception? return 0.0 return compute_n50_from_bins(self.bins)
def attribute(self): return compute_n50_from_bins(self.bins)