jlab-sensing / Rocketlogger-Firmware

MIT License
0 stars 0 forks source link

Leading null values in data csv #28

Open jmadden173 opened 1 year ago

jmadden173 commented 1 year ago

When running plots.ipynb, I received the following error. I applied temporary fix to strip NULL values from the ts but I am not sure what caused the values to be there in the first place.

ValueError                                Traceback (most recent call last)
Cell In[3], line 10
      7 smfcs[i]['i'][j] = 1e6*float(smfcs[i]['i'][j]) #uA
      8 #convert unix seconds to day since the start
      9 #print(float(smfcs[i]['ts'][j]), float(smfcs[i]['ts'][0]), (float(smfcs[i]['ts'][j])-start)/(60*60*24))
---> 10 smfcs[i]['ts'][j] = (float(smfcs[i]['ts'][j])-start)/(60*60*24)
     11 #Add power column
     12 smfcs[i]['p'].append(1e-3*smfcs[i]['v'][j]*smfcs[i]['i'][j]) #uW

ValueError: could not convert string to float: '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x001689975925'