Plots
This commit is contained in:
parent
38494b7453
commit
ef497f47dc
|
@ -8,7 +8,7 @@ pipeline {
|
|||
}
|
||||
stage('Generate and archive plots'){
|
||||
steps {
|
||||
sh label: '', script: './generate_plot.py'
|
||||
sh label: '', script: './generate_plot.sh'
|
||||
archiveArtifacts 'wer.png'
|
||||
archiveArtifacts 'srr.png'
|
||||
}
|
||||
|
|
|
@ -15,8 +15,8 @@ def generate_plot(data: list, label: str, file_name: str):
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
wer = [float(i) for i in read_into_file('wer.txt')]
|
||||
srr = [float(i) for i in read_into_file('srr.txt')]
|
||||
wer = [float(i) for i in read_into_file('wer-generate.txt')]
|
||||
srr = [float(i) for i in read_into_file('srr-generate.txt')]
|
||||
|
||||
generate_plot(wer, 'WER', 'wer.png')
|
||||
generate_plot(srr, 'SRR', 'srr.png')
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
tail -50 wer.txt > wer-generate.txt
|
||||
tail -50 srr.txt > srr-generate.txt
|
||||
|
||||
python3 generate_plot.py
|
Loading…
Reference in New Issue