plots
This commit is contained in:
parent
d169a48531
commit
5f0be79461
@ -5,8 +5,8 @@ RUN apt install -y git
|
|||||||
RUN apt install -y gcc
|
RUN apt install -y gcc
|
||||||
RUN gcc --version
|
RUN gcc --version
|
||||||
RUN apt install -y build-essential
|
RUN apt install -y build-essential
|
||||||
RUN git clone https://github.com/usnistgov/SCTK.git
|
RUN apt install -y python3
|
||||||
WORKDIR SCTK
|
RUN apt install -y python3-pip
|
||||||
RUN make config && make all && make check && make install && make doc
|
RUN pip install matplotlib
|
||||||
ENV PATH=$PATH:/SCTK/bin
|
|
||||||
|
|
||||||
|
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -8,7 +8,9 @@ pipeline {
|
|||||||
copyArtifacts filter: 'wer.txt', fingerprintArtifacts: true, projectName: 's416296-metrics', selector: lastSuccessful()
|
copyArtifacts filter: 'wer.txt', fingerprintArtifacts: true, projectName: 's416296-metrics', selector: lastSuccessful()
|
||||||
copyArtifacts filter: 'srr.txt', fingerprintArtifacts: true, projectName: 's416296-metrics', selector: lastSuccessful()
|
copyArtifacts filter: 'srr.txt', fingerprintArtifacts: true, projectName: 's416296-metrics', selector: lastSuccessful()
|
||||||
sh label: '', script: 'chmod a+rwx script.py'
|
sh label: '', script: 'chmod a+rwx script.py'
|
||||||
sh label: '', script: './script.py'
|
sh label: '', script: 'python script.py'
|
||||||
|
archiveArtifacts 'wer.png'
|
||||||
|
archiveArtifacts 'srr.png'
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
25
script.py
25
script.py
@ -0,0 +1,25 @@
|
|||||||
|
import matplotlib.pyplot as plt
|
||||||
|
|
||||||
|
fig_wer, fig_srr = plt.subplots()
|
||||||
|
|
||||||
|
X1, Y1 = [], []
|
||||||
|
X2, Y2 = [], []
|
||||||
|
y_num=1
|
||||||
|
for line in open('wer.txt', 'r'):
|
||||||
|
X1.append(line)
|
||||||
|
Y1.append(y_num)
|
||||||
|
y_num=y_num+1
|
||||||
|
|
||||||
|
fig_wer.plot(X1, Y1)
|
||||||
|
fig_wer.set_title("WER")
|
||||||
|
fig_wer.savefig('wer.png')
|
||||||
|
|
||||||
|
y_num=1
|
||||||
|
for line in open('srr.txt', 'r'):
|
||||||
|
X2.append(line)
|
||||||
|
Y2.append(y_num)
|
||||||
|
y_num=y_num+1
|
||||||
|
|
||||||
|
fig_srr.plot(X2, Y2)
|
||||||
|
fig_srr.set_title("SRR")
|
||||||
|
fig_srr.savefig('srr.png')
|
Loading…
Reference in New Issue
Block a user