From: Eric S. Raymond Date: Tue, 16 Sep 2003 21:28:24 +0000 (+0000) Subject: More statistics polishing. X-Git-Tag: 2.0~32 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=3238d739d98360b192de74b3206481744e46bd92;p=comparator.git More statistics polishing. --- diff --git a/comparator.py b/comparator.py index d2ea298..d278ef8 100644 --- a/comparator.py +++ b/comparator.py @@ -207,6 +207,10 @@ class CommonReport: filtered.append(clique) self.cliques = filtered + def statistics(self): + "Return a statistical summary object for the current report." + return CommonStatistics(self) + class CommonStatistics: "Statistical information from a report." def __init__(self, report): diff --git a/filterator b/filterator index 5316b0d..cb50fce 100755 --- a/filterator +++ b/filterator @@ -60,7 +60,7 @@ if __name__ == '__main__': state.filter_by_significance() if stats: - sys.stdout.write(str(comparator.CommonStatistics(state))) + sys.stdout.write(str(state.statistics())) else: report_common(state) except comparator.ComparatorException, e: