Commit 5ad56d3131ed866b5c83789163f0217d3e5d8c7a
1 parent
216c27103e
Exists in
master
resolve bug with empty value
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
allanplot-gui.py
... | ... | @@ -43,7 +43,7 @@ |
43 | 43 | textList = textList+'\n'+str(f) |
44 | 44 | with open(f, 'r') as dest_f: |
45 | 45 | data_iter = csv.reader(dest_f, delimiter = '\t', quotechar = '"') |
46 | - temp_data = [value for value in data_iter] | |
46 | + temp_data = [filter(None, value) for value in data_iter] | |
47 | 47 | self.data.extend(temp_data) |
48 | 48 | self.data = numpy.asarray(self.data, dtype = float) |
49 | 49 | self.textFileList.setText(textList) |