Commit 3c9512ae81ac1e35fa4fc15e0742fd3d3668ad57

Authored by bmarechal
1 parent 7d1b1e74d2
Exists in master

-

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

... ... @@ -11,7 +11,8 @@
11 11 data_iter = csv.reader(open(f, 'r'), delimiter = ',', quotechar = '"')
12 12 for i in range(2):
13 13 data_iter.next()
14   - temp_data = [value for value in data_iter]
  14 + temp_data = [value for value in data_iter] #if ends with a number
  15 + #temp_data = [value[:-1] for value in data_iter]#if ends with a comma
15 16 data.extend(temp_data)
16 17  
17 18 data = np.asarray(data, dtype = float)