Commit 7d1b1e74d26659865460efab51ce9372e6f9fe9a
1 parent
33baf48955
Exists in
master
Resolve csv reading bug
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
RingDown.py
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | import csv, glob |
4 | 4 | from scipy.optimize import curve_fit |
5 | 5 | |
6 | -list_files = (glob.glob('WA*5.CSV')) | |
6 | +list_files = (glob.glob('WA*1.CSV')) | |
7 | 7 | |
8 | 8 | data = [] |
9 | 9 | |
... | ... | @@ -11,7 +11,7 @@ |
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[:-1] for value in data_iter] | |
14 | + temp_data = [value for value in data_iter] | |
15 | 15 | data.extend(temp_data) |
16 | 16 | |
17 | 17 | data = np.asarray(data, dtype = float) |