Commit 3f3ff950 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME

Rm stuff now in bob.extension

parent fcde800c
Pipeline #21475 canceled with stage
in 1 minute and 6 seconds
......@@ -2,7 +2,7 @@
"""
import click
from bob.measure.script import common_options
from bob.extension.scripts.click_helper import verbosity_option, CONTEXT_SETTINGS
from bob.extension.scripts.click_helper import verbosity_option
import bob.bio.base.script.gen as bio_gen
import bob.measure.script.figure as measure_figure
from bob.bio.base.score import load
......@@ -14,7 +14,7 @@ SCORE_FORMAT = (
CRITERIA = ('eer', 'min-hter', 'bpcer20')
@click.command(context_settings=CONTEXT_SETTINGS)
@click.command()
@click.argument('outdir')
@click.option('-mm', '--mean-match', default=10, type=click.FLOAT,
show_default=True)
......
......@@ -7,7 +7,7 @@ import click
from click.types import FLOAT
from bob.measure.script import common_options
from bob.extension.scripts.click_helper import (
verbosity_option, bool_option, list_float_option, CONTEXT_SETTINGS
verbosity_option, bool_option, list_float_option
)
from bob.core import random
from bob.io.base import create_directories_safe
......@@ -69,7 +69,7 @@ def write_scores_to_file(neg, pos, filename, attack=False):
f.write('x y foo %f\n' % i)
@click.command(context_settings=CONTEXT_SETTINGS)
@click.command()
@click.argument('outdir')
@click.option('--mean-gen', default=7, type=FLOAT, show_default=True)
@click.option('--mean-zei', default=3, type=FLOAT, show_default=True)
......@@ -102,7 +102,7 @@ def gen(outdir, mean_gen, mean_zei, mean_pa):
attack=True)
@click.command(context_settings=common_options.CONTEXT_SETTINGS)
@click.command()
@common_options.scores_argument(min_arg=2, nargs=-1)
@common_options.output_plot_file_option(default_out='vuln_roc.pdf')
@common_options.legends_option()
......@@ -142,7 +142,7 @@ def roc(ctx, scores, real_data, **kwargs):
process.run()
@click.command(context_settings=common_options.CONTEXT_SETTINGS)
@click.command()
@common_options.scores_argument(min_arg=2, nargs=-1)
@common_options.output_plot_file_option(default_out='vuln_det.pdf')
@common_options.legends_option()
......@@ -182,7 +182,7 @@ def det(ctx, scores, real_data, **kwargs):
process.run()
@click.command(context_settings=common_options.CONTEXT_SETTINGS)
@click.command()
@common_options.scores_argument(min_arg=2, force_eval=True, nargs=-1)
@common_options.output_plot_file_option(default_out='vuln_epc.pdf')
@common_options.legends_option()
......@@ -226,7 +226,7 @@ def epc(ctx, scores, **kwargs):
process.run()
@click.command(context_settings=common_options.CONTEXT_SETTINGS)
@click.command()
@common_options.scores_argument(min_arg=2, force_eval=True, nargs=-1)
@common_options.output_plot_file_option(default_out='vuln_epsc.pdf')
@common_options.legends_option()
......@@ -299,7 +299,7 @@ def epsc(ctx, scores, criteria, var_param, fixed_param, three_d, sampling,
process.run()
@click.command(context_settings=common_options.CONTEXT_SETTINGS)
@click.command()
@common_options.scores_argument(nargs=-1, min_arg=2)
@common_options.output_plot_file_option(default_out='vuln_hist.pdf')
@common_options.n_bins_option()
......@@ -356,7 +356,7 @@ def hist(ctx, scores, evaluation, **kwargs):
process.run()
@click.command(context_settings=common_options.CONTEXT_SETTINGS)
@click.command()
@common_options.scores_argument(min_arg=2, force_eval=True, nargs=-1)
@common_options.output_plot_file_option(default_out='fmr_iapmr.pdf')
@common_options.legends_option()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment