* errorbar: Added "lazy" string evaluation to speed up errorbar algebra.

master
Wirawan Purwanto 11 years ago
parent ed1242dc66
commit 579be3e18a
  1. 2
      math/stats/errorbar.py

@ -175,7 +175,7 @@ class errorbar(object):
def __str__(self): def __str__(self):
if getattr(self, "eb", None): if getattr(self, "eb", None):
return self.eb return self.eb
elif getattr(self, "eb", None) == None and getattr(self, "ebproc", None) != None: elif getattr(self, "eb", None) == None and callable(getattr(self, "ebproc", None)):
self.eb = self.ebproc(self.val, self.err) self.eb = self.ebproc(self.val, self.err)
return self.eb return self.eb
else: else:

Loading…
Cancel
Save