Skip to content
Snippets Groups Projects
Commit f08a4c1f authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

re-format the code

parent 8d2fdd27
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,8 @@
# vim: set fileencoding=utf-8 :
# Ivana Chingovska <ivana.chingovska@idiap.ch>
# Mon Feb 18 16:12:41 CET 2013
"""Plot different types of plots as demanded by the user. The numbers of the plots to be plotted are given as a command line argument.
"""Plot different types of plots as demanded by the user. The numbers of the
plots to be plotted are given as a command line argument.
"""
import os
......@@ -29,32 +30,28 @@ def main():
metavar='FILE',
type=str,
default="",
help=
'Name of the scores file (4-column) containing the scores for the verification system, LICIT scenario (development set)'
help='Name of the scores file (4-column) containing the scores for the verification system, LICIT scenario (development set)'
)
parser.add_argument(
'baseline_test',
metavar='FILE',
type=str,
default="",
help=
'Name of the scores file (4-column) containing the scores for the verification system, LICIT scenario (test set)'
help='Name of the scores file (4-column) containing the scores for the verification system, LICIT scenario (test set)'
)
parser.add_argument(
'overlay_dev',
metavar='FILE',
type=str,
default="",
help=
'Name of the scores file (4-column) containing the scores for the verification system, SPOOF scenario (spoofing attacks; development set)'
help='Name of the scores file (4-column) containing the scores for the verification system, SPOOF scenario (spoofing attacks; development set)'
)
parser.add_argument(
'overlay_test',
metavar='FILE',
type=str,
default="",
help=
'Name of the scores file (4-column) containing the scores for the verification system, SPOOF scenario (spoofing attacks; test set)'
help='Name of the scores file (4-column) containing the scores for the verification system, SPOOF scenario (spoofing attacks; test set)'
)
parser.add_argument(
'-c',
......@@ -90,8 +87,7 @@ def main():
parser.add_argument(
'--norealdata',
action='store_true',
help=
'If True, will annotate the plots hypothetically, instead of with real data values of the calculated error rates.'
help='If True, will annotate the plots hypothetically, instead of with real data values of the calculated error rates.'
)
parser.add_argument(
'-t',
......@@ -116,8 +112,17 @@ def main():
type=int,
dest='demandedplot',
default=(1, ),
help=
'The numbers of plot that needs to be plotted. Select: 1 - for DET for licit scenario only; 2 - for DET for licit and spoof scenario; 3 - for DET for licit and spoof scenario and FRR line; 4 - for score distribution for licit scenario; 5 - for score distribution for licit scenario and threshold line; 6 - for score distribution for licit and spoof scneario and threshold line; 7 - for score distribution for licit and spoof scenario and threshold line and probability of success line; 8 - for EPC for licit scenario; 9 - for EPC for licit scenario and SFAR line; 10 - for EPSC for WER-wb; 11 - for EPSC for SFAR; 12 - for 3D EPSC for WER-wb; 13 - for 3D EPSC for SFAR',
help='The numbers of plot that needs to be plotted. Select: 1 - for '
'DET for licit scenario only; 2 - for DET for licit and spoof '
'scenario; 3 - for DET for licit and spoof scenario and FRR line; '
'4 - for score distribution for licit scenario; 5 - for score '
'distribution for licit scenario and threshold line; 6 - for '
'score distribution for licit and spoof scneario and threshold '
'line; 7 - for score distribution for licit and spoof scenario '
'and threshold line and probability of success line; 8 - for EPC '
'for licit scenario; 9 - for EPC for licit scenario and SFAR '
'line; 10 - for EPSC for WER-wb; 11 - for EPSC for SFAR; 12 - for '
'3D EPSC for WER-wb; 13 - for 3D EPSC for SFAR',
nargs='+')
args = parser.parse_args()
......@@ -148,7 +153,8 @@ def main():
from matplotlib.backends.backend_pdf import PdfPages
outdir = os.path.dirname(args.output)
if outdir and not os.path.exists(outdir): os.makedirs(outdir)
if outdir and not os.path.exists(outdir):
os.makedirs(outdir)
pp = PdfPages(args.output)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment