docstring for DataSet
| 1 | class DataSet(list): |
| 2 | """docstring for DataSet""" |
| 3 | |
| 4 | def __init__(self): |
| 5 | list.__init__(self) |
| 6 | |
| 7 | @property |
| 8 | def list(self): |
| 9 | return [[r.dimensions, r.metrics] for r in self] |
| 10 | |
| 11 | @property |
| 12 | def tuple(self): |
| 13 | return tuple(map(tuple,self.list)) |
| 14 | |
| 15 | @property |
| 16 | def dict(self): |
| 17 | ds = {} |
| 18 | for dp in self: |
| 19 | ds[dp.dimension] = dp.metric |
| 20 | return ds |
| 21 | |
| 22 | |
| 23 | class DataPoint: |