changeset 74:630cde28928a

accessor
author Jeff Hammel <k0scist@gmail.com>
date Sun, 01 Mar 2015 07:53:23 -0800
parents 8e93d7357c6b
children 2337abc4ebfe
files numerics/histogram.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/numerics/histogram.py	Sat Feb 28 21:28:17 2015 -0800
+++ b/numerics/histogram.py	Sun Mar 01 07:53:23 2015 -0800
@@ -62,6 +62,11 @@
     def keys(self):
         return self.data.keys()
 
+    def max(self):
+        """return max length"""
+        return max([len(value) for value in self.data.values()])
+
+
 class HistogramParser(CSVParser):
     """histogram CLI option parser"""