Plots
This commit is contained in:
parent
38494b7453
commit
ef497f47dc
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -8,7 +8,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('Generate and archive plots'){
|
stage('Generate and archive plots'){
|
||||||
steps {
|
steps {
|
||||||
sh label: '', script: './generate_plot.py'
|
sh label: '', script: './generate_plot.sh'
|
||||||
archiveArtifacts 'wer.png'
|
archiveArtifacts 'wer.png'
|
||||||
archiveArtifacts 'srr.png'
|
archiveArtifacts 'srr.png'
|
||||||
}
|
}
|
||||||
|
@ -15,8 +15,8 @@ def generate_plot(data: list, label: str, file_name: str):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
wer = [float(i) for i in read_into_file('wer.txt')]
|
wer = [float(i) for i in read_into_file('wer-generate.txt')]
|
||||||
srr = [float(i) for i in read_into_file('srr.txt')]
|
srr = [float(i) for i in read_into_file('srr-generate.txt')]
|
||||||
|
|
||||||
generate_plot(wer, 'WER', 'wer.png')
|
generate_plot(wer, 'WER', 'wer.png')
|
||||||
generate_plot(srr, 'SRR', 'srr.png')
|
generate_plot(srr, 'SRR', 'srr.png')
|
||||||
|
6
generate_plot.sh
Executable file
6
generate_plot.sh
Executable file
@ -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
Block a user