* Version 1.2.7 (I'm not sure what happened to the ChangeLog reports for 1.2.{4,5,6}...) pyslha-1.2.7

Sat, 10 Sep 2011 22:34:34 +0900

author
Andy Buckley <andy@insectnation.org>
date
Sat, 10 Sep 2011 22:34:34 +0900
changeset 152
8ca4c23ba4a6
parent 151
20033544ab1b
child 153
fcc4f8e3158b

* Version 1.2.7 (I'm not sure what happened to the ChangeLog reports for 1.2.{4,5,6}...)

* slhaplot: Fixing the min/max x/y functions in the class used to implement label merging. Thanks to Alexander Mann for the bug report, patch, and test spectrum!

ChangeLog file | annotate | diff | comparison | revisions
pyslha.py file | annotate | diff | comparison | revisions
slhaplot file | annotate | diff | comparison | revisions
     1.1 --- a/ChangeLog	Sat Sep 10 22:28:33 2011 +0900
     1.2 +++ b/ChangeLog	Sat Sep 10 22:34:34 2011 +0900
     1.3 @@ -1,3 +1,12 @@
     1.4 +2011-09-10  Andy Buckley  <andy@insectnation.org>
     1.5 +
     1.6 +	* Version 1.2.7 (I'm not sure what happened to the ChangeLog
     1.7 +	reports for 1.2.{4,5,6}...)
     1.8 +
     1.9 +	* slhaplot: Fixing the min/max x/y functions in the class used to
    1.10 +	implement label merging. Thanks to Alexander Mann for the bug
    1.11 +	report, patch, and test spectrum!
    1.12 +
    1.13  2011-06-20  Andy Buckley  <andy@insectnation.org>
    1.14  
    1.15  	* pyslha.py: Add "precision" arguments to the write* functions,
     2.1 --- a/pyslha.py	Sat Sep 10 22:28:33 2011 +0900
     2.2 +++ b/pyslha.py	Sat Sep 10 22:34:34 2011 +0900
     2.3 @@ -24,7 +24,7 @@
     2.4  """
     2.5  
     2.6  __author__ = "Andy Buckley <andy.buckley@cern.ch"
     2.7 -__version__ = "1.2.6"
     2.8 +__version__ = "1.2.7"
     2.9  
    2.10  
    2.11  def _autotype(var):
     3.1 --- a/slhaplot	Sat Sep 10 22:28:33 2011 +0900
     3.2 +++ b/slhaplot	Sat Sep 10 22:34:34 2011 +0900
     3.3 @@ -409,20 +409,20 @@
     3.4                  return sum(l[1] for l in self.labels)/float(len(self))
     3.5              @property
     3.6              def minx(self):
     3.7 -                return min(l[1] for l in self.labels)/float(len(self))
     3.8 +                return min(l[1] for l in self.labels)
     3.9              @property
    3.10              def maxx(self):
    3.11 -                return max(l[1] for l in self.labels)/float(len(self))
    3.12 +                return max(l[1] for l in self.labels)
    3.13  
    3.14              @property
    3.15              def avgy(self):
    3.16                  return sum(l[2] for l in self.labels)/float(len(self))
    3.17              @property
    3.18              def miny(self):
    3.19 -                return min(l[2] for l in self.labels)/float(len(self))
    3.20 +                return min(l[2] for l in self.labels)
    3.21              @property
    3.22              def maxy(self):
    3.23 -                return max(l[2] for l in self.labels)/float(len(self))
    3.24 +                return max(l[2] for l in self.labels)
    3.25  
    3.26              def add(self, label, x, y):
    3.27                  self.labels.append((label, x, y))

mercurial