Merge "carbonara: remove unused class"
This commit is contained in:
commit
2df8f95f6e
@ -77,17 +77,7 @@ class UnknownAggregationMethod(Exception):
|
|||||||
"Unknown aggregation method `%s'" % agg)
|
"Unknown aggregation method `%s'" % agg)
|
||||||
|
|
||||||
|
|
||||||
class SerializableMixin(object):
|
class TimeSerie(object):
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def unserialize(cls, data):
|
|
||||||
return cls.from_dict(msgpack.loads(data, encoding='utf-8'))
|
|
||||||
|
|
||||||
def serialize(self):
|
|
||||||
return msgpack.dumps(self.to_dict())
|
|
||||||
|
|
||||||
|
|
||||||
class TimeSerie(SerializableMixin):
|
|
||||||
"""A representation of series of a timestamp with a value.
|
"""A representation of series of a timestamp with a value.
|
||||||
|
|
||||||
Duplicate timestamps are not allowed and will be filtered to use the
|
Duplicate timestamps are not allowed and will be filtered to use the
|
||||||
@ -185,6 +175,13 @@ class TimeSerie(SerializableMixin):
|
|||||||
except IndexError:
|
except IndexError:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def unserialize(cls, data):
|
||||||
|
return cls.from_dict(msgpack.loads(data, encoding='utf-8'))
|
||||||
|
|
||||||
|
def serialize(self):
|
||||||
|
return msgpack.dumps(self.to_dict())
|
||||||
|
|
||||||
|
|
||||||
class BoundTimeSerie(TimeSerie):
|
class BoundTimeSerie(TimeSerie):
|
||||||
def __init__(self, ts=None, block_size=None, back_window=0):
|
def __init__(self, ts=None, block_size=None, back_window=0):
|
||||||
|
Loading…
Reference in New Issue
Block a user