From 5ad56d3131ed866b5c83789163f0217d3e5d8c7a Mon Sep 17 00:00:00 2001 From: mer0m Date: Mon, 5 Dec 2016 20:21:00 +0100 Subject: [PATCH] resolve bug with empty value --- allanplot-gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allanplot-gui.py b/allanplot-gui.py index 62417d7..17f6ae3 100644 --- a/allanplot-gui.py +++ b/allanplot-gui.py @@ -43,7 +43,7 @@ class allanplot(QtGui.QMainWindow, allanplotUI.Ui_MainWindow): textList = textList+'\n'+str(f) with open(f, 'r') as dest_f: data_iter = csv.reader(dest_f, delimiter = '\t', quotechar = '"') - temp_data = [value for value in data_iter] + temp_data = [filter(None, value) for value in data_iter] self.data.extend(temp_data) self.data = numpy.asarray(self.data, dtype = float) self.textFileList.setText(textList) -- 2.16.4