From 7d1b1e74d26659865460efab51ce9372e6f9fe9a Mon Sep 17 00:00:00 2001 From: mer0m Date: Sat, 19 Nov 2016 15:00:49 +0100 Subject: [PATCH] Resolve csv reading bug --- RingDown.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RingDown.py b/RingDown.py index 161cc5c..3b404e8 100644 --- a/RingDown.py +++ b/RingDown.py @@ -3,7 +3,7 @@ import numpy as np import csv, glob from scipy.optimize import curve_fit -list_files = (glob.glob('WA*5.CSV')) +list_files = (glob.glob('WA*1.CSV')) data = [] @@ -11,7 +11,7 @@ for f in list_files: data_iter = csv.reader(open(f, 'r'), delimiter = ',', quotechar = '"') for i in range(2): data_iter.next() - temp_data = [value[:-1] for value in data_iter] + temp_data = [value for value in data_iter] data.extend(temp_data) data = np.asarray(data, dtype = float) -- 2.16.4