aboutsummaryrefslogtreecommitdiffstats
path: root/parse/point.py
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-04-23 17:28:12 -0400
committerJonathan Herman <hermanjl@cs.unc.edu>2013-04-23 17:28:12 -0400
commit2ceaa6c607ef85bde4f14017634d9d1621efca29 (patch)
treec85e755e59907a48ff762fd56473449f33c23894 /parse/point.py
parenta0e4b9fe9d7fab9a50a626cfeda3c614a9a6af5d (diff)
parent7545402506aa76261e18d85af585ff0ac1cf05c1 (diff)
Merge branch 'master' into wip-color-mc
Conflicts: gen/generator.py parse/sched.py parse_exps.py
Diffstat (limited to 'parse/point.py')
-rw-r--r--parse/point.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/parse/point.py b/parse/point.py
index ac47c70..b1d9d53 100644
--- a/parse/point.py
+++ b/parse/point.py
@@ -133,6 +133,10 @@ class ExpPoint(object):
133 def get_stats(self): 133 def get_stats(self):
134 return self.stats.keys() 134 return self.stats.keys()
135 135
136 def __bool__(self):
137 return bool(self.stats)
138 __nonzero__ = __bool__
139
136 140
137class SummaryPoint(ExpPoint): 141class SummaryPoint(ExpPoint):
138 def __init__(self, id="", points=[], typemap = default_typemap): 142 def __init__(self, id="", points=[], typemap = default_typemap):