title: Python doesn't parse Serial data to an array
body: <p>I am working on a project in which I have to collect voltages from a teensy 2.0(which I am programming with arduino) and send those voltages to Python. I also have to send the microsecond the data was taken on. I am using PySerial to communicate with the teensy. I first read in all my data to an array of length 3998. I have two other arrays, a <code>timeData</code> array, which keeps track of the microseconds, and a <code>radarData</code> array, which keeps track of the voltages. Each array carries half the data, or 1999 points.</p>
  
  <p>Sample portion of SerialData:</p>
  
  <pre><code>b'1468095384\r\n'
  b'0.01\r\n'
  </code></pre>
  
  <p>This will get repeated 1999 times.
  The Python code takes these inputs and writes them into and array "SerialData". After it is done reading all the data it separates all the points into the two arrays like so:</p>
  
  <pre><code>for i in range (0,3998):
      if(i % 2 == 0):
          radarData[samples] = float(str(SerialData[i], 'utf-8'))
          samples = samples + 1
      else:
          timeData[samples1] = float(str(SerialData[i], 'utf-8'))
          samples1 = samples1 + 1
  </code></pre>
  
  <p>Sample and Sample1 are counter variables.</p>
  
  <p>From printing out <code>float(str(SerialData[i], 'utf-8'))</code>, I know that parsing the string as a float works, but whenever I print out <code>radarData[samples]</code> or <code>timeData[samples]</code>, I just see 0. What am I doing wrong? Any help is appreciated.</p>
  
  <p>Thanks!</p>