Skip to content
Snippets Groups Projects
Commit 83a46150 authored by cramakri's avatar cramakri
Browse files

CCS-39 SP-699 : Make TSV conversion better accept empty lines

SVN: 29349
parent 7016c403
No related branches found
No related tags found
No related merge requests found
......@@ -46,9 +46,11 @@ def convert_data_to_tsv(tr, dataset, location):
tsv = open(tsvFileName, 'w')
for line in timeSeriesData.getRawDataLines():
for i in range(0, len(line) - 1):
tsv.write(line[i])
tsv.write("\t")
tsv.write(line[len(line) - 1])
if (line[i]):
tsv.write(line[i])
tsv.write("\t")
if (line[len(line) - 1]):
tsv.write(line[len(line) - 1])
tsv.write("\n")
tsv.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment