Commit e2004e65 authored by Arnaud WATLET's avatar Arnaud WATLET
Browse files

Temporary fixes fulldata in csv but will be changed soon (issue #108)

Showing with 10 additions and 10 deletions
+10 -10
......@@ -190,16 +190,16 @@ class OhmPi(object):
# TODO need to make all the full data of the same size (pre-populate
# readings with NaN in hardware_system.OhmPiHardware.read_values())
if 'fulldata' in last_measurement:
# d = last_measurement['fulldata']
# n = d.shape[0]
# if n > 1:
# idic = dict(zip(['i' + str(i) for i in range(n)], d[:, 0]))
# udic = dict(zip(['u' + str(i) for i in range(n)], d[:, 1]))
# tdic = dict(zip(['t' + str(i) for i in range(n)], d[:, 2]))
# last_measurement.update(idic)
# last_measurement.update(udic)
# last_measurement.update(tdic)
last_measurement.pop('fulldata')
d = last_measurement['fulldata']
n = d.shape[0]
if n > 1:
idic = dict(zip(['i' + str(i) for i in range(n)], d[:, 0]))
udic = dict(zip(['u' + str(i) for i in range(n)], d[:, 1]))
tdic = dict(zip(['t' + str(i) for i in range(n)], d[:, 2]))
last_measurement.update(idic)
last_measurement.update(udic)
last_measurement.update(tdic)
# last_measurement.pop('fulldata')
if os.path.isfile(filename):
# Load data file and append data to it
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment