jenkinsfile

This commit is contained in:
unknown 2020-04-03 15:36:54 +02:00
parent b743320aa4
commit cfa969f03b

View File

@ -35,9 +35,7 @@ ssr.write(str(float(ssrCounter)/float(counter) * 100) + "%")
wer.close() wer.close()
ssr.close() ssr.close()
kk = open("wikiniews_results2.tsv","w") counter = 0
kk.close()
with open('wikiniews_results.tsv','r') as f_in: with open('wikiniews_results.tsv','r') as f_in:
with open('wikiniews_results2.tsv', 'w') as f_out: with open('wikiniews_results2.tsv', 'w') as f_out:
writer = csv.writer(f_out, delimiter=' ', lineterminator='\n') writer = csv.writer(f_out, delimiter=' ', lineterminator='\n')
@ -49,7 +47,7 @@ with open('wikiniews_results.tsv','r') as f_in:
# add new header to list of headers # add new header to list of headers
row.append('Col5') row.append('Col5')
result.append(row) result.append(row)
counter = 0
for row in reader: for row in reader:
# add new column values # add new column values
row.append(werArray[counter]) row.append(werArray[counter])