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)