def send(self):
acc = Datastream(id='acc')
acc.datapoints = [
- Datapoint(self.time0, [1, 1, 1]),
- Datapoint(self.time1, [2, 2, 2]),
- Datapoint(self.time2, [3, 3, 3]),
- Datapoint(self.time3, [4, 4, 4]),
- Datapoint(self.time4, [5, 5, 5]),
+ Datapoint(self.time0, [1, 1, 1]),
+ Datapoint(self.time1, [2, 2, 2]),
+ Datapoint(self.time2, [3, 3, 3]),
+ Datapoint(self.time3, [4, 4, 4]),
+ Datapoint(self.time4, [5, 5, 5]),
]
mag = Datastream(id='mag')
mag.datapoints = [
- Datapoint(self.time0, [1, 1, 1]),
- Datapoint(self.time1, [2, 2, 2]),
- Datapoint(self.time2, [3, 3, 3]),
- Datapoint(self.time3, [4, 4, 4]),
- Datapoint(self.time4, [5, 5, 5]),
+ Datapoint(self.time0, [1, 1, 1]),
+ Datapoint(self.time1, [2, 2, 2]),
+ Datapoint(self.time2, [3, 3, 3]),
+ Datapoint(self.time3, [4, 4, 4]),
+ Datapoint(self.time4, [5, 5, 5]),
]
self.feed.datastreams = [ acc, mag ]