[Spambayes-checkins] spambayes TestDriver.py,1.17,1.18

Tim Peters tim_one@users.sourceforge.net
Fri, 27 Sep 2002 20:44:17 -0700


Update of /cvsroot/spambayes/spambayes
In directory usw-pr-cvs1:/tmp/cvs-serv7256

Modified Files:
	TestDriver.py 
Log Message:
Hist.display():  reduced the # of columns devoted to showing the bucket
boundaries by 1, and added a column to the histogram proper.  There are
enough boundary columns remaining to distinguish 1000 buckets, and even
I never use that many <wink>.


Index: TestDriver.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/TestDriver.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** TestDriver.py	27 Sep 2002 21:18:18 -0000	1.17
--- TestDriver.py	28 Sep 2002 03:44:15 -0000	1.18
***************
*** 62,66 ****
          return self
  
!     def display(self, WIDTH=60):
          from math import sqrt
          if self.n > 0:
--- 62,66 ----
          return self
  
!     def display(self, WIDTH=61):
          from math import sqrt
          if self.n > 0:
***************
*** 81,85 ****
  
          ndigits = len(str(biggest))
!         format = "%6.2f %" + str(ndigits) + "d"
  
          for i in range(len(self.buckets)):
--- 81,85 ----
  
          ndigits = len(str(biggest))
!         format = "%5.1f %" + str(ndigits) + "d"
  
          for i in range(len(self.buckets)):