|
[Rivet-svn] r3135 - trunk/pyextblackhole at projects.hepforge.org blackhole at projects.hepforge.orgTue Jun 7 01:06:38 BST 2011
Author: buckley Date: Tue Jun 7 01:06:38 2011 New Revision: 3135 Log: Fixed dumb error! Modified: trunk/pyext/lighthisto.py Modified: trunk/pyext/lighthisto.py ============================================================================== --- trunk/pyext/lighthisto.py Tue Jun 7 01:04:47 2011 (r3134) +++ trunk/pyext/lighthisto.py Tue Jun 7 01:06:38 2011 (r3135) @@ -432,7 +432,7 @@ class Bin(object): """A simple container for a binned value with an error.""" aidaindent = " " - __slots__ = ["xlow", "xhigh", "ylow", "yhigh", "val", "errplus", "errminus", "focus"] + __slots__ = ["xlow", "xhigh", "ylow", "yhigh", "val", "errplus", "errminus", "_focus"] def __init__(self, xlow=None, xhigh=None, val=0, errplus=0, errminus=0, focus=None, ylow=None, yhigh=None): def _float(f): if f is None: @@ -503,10 +503,10 @@ def getFocus(self): """Mean x-value of the bin.""" - if self.focus is not None: + if self._focus is not None: return (self.xlow + self.xhigh)/2.0 else: - return self.focus + return self._focus focus = property(getFocus) def getVal(self):
More information about the Rivet-svn mailing list |