Files
x12sa/script/Bmp6TimeScan.py
2017-03-23 10:02:52 +01:00

20 lines
423 B
Python

rel_x = pico_bpm6_new_x.read()
class XAxis(ReadableArray):
def read(self):
start = pico_bpm6_new.getTimestamp()
#return to_array([x + start for x in rel_x], 'd')
return [x + start for x in rel_x]
def getSize(self):
return len(rel_x) #only reads if cache is None
x_axis = XAxis()
setup_plotting(line_plots = [pico_bpm6_new, x_axis])
tscan([pico_bpm6_new, x_axis], 10, 0.5)