16 lines
400 B
Python
16 lines
400 B
Python
#rel_x = pico_bpm6_new_x.read()
|
|
rel_x = pico_bpm6_ts_x.read()
|
|
|
|
class SensorXAxis(ReadableArray):
|
|
def __init__(self, sensor):
|
|
self.sensor = sensor
|
|
def read(self):
|
|
return [x + self.sensor.getTimestamp() for x in rel_x]
|
|
def getSize(self):
|
|
return len(rel_x) #only reads if cache is None
|
|
|
|
|
|
x_axis = SensorXAxis(pico_bpm6_ts_sumall)
|
|
|
|
#plot(x_axis.read())
|
|
plot(x_axis) |