Skip to content
Snippets Groups Projects
Commit 64ed833f authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME
Browse files

Help parameter customization

parent 0b5d3c4c
No related branches found
No related tags found
1 merge request!167Various fixes
...@@ -141,7 +141,7 @@ def cmc(ctx, scores, evaluation, **kargs): ...@@ -141,7 +141,7 @@ def cmc(ctx, scores, evaluation, **kargs):
process.run() process.run()
@click.command() @click.command(context_settings=common_options.CONTEXT_SETTINGS)
@common_options.scores_argument(nargs=-1) @common_options.scores_argument(nargs=-1)
@common_options.titles_option() @common_options.titles_option()
@common_options.legends_option() @common_options.legends_option()
......
...@@ -9,6 +9,7 @@ from click.types import FLOAT ...@@ -9,6 +9,7 @@ from click.types import FLOAT
from bob.extension.scripts.click_helper import verbosity_option from bob.extension.scripts.click_helper import verbosity_option
import bob.core import bob.core
from bob.io.base import create_directories_safe from bob.io.base import create_directories_safe
from bob.measure.script import common_options
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
...@@ -79,7 +80,7 @@ def write_scores_to_file(neg, pos, filename, n_sys=1, five_col=False): ...@@ -79,7 +80,7 @@ def write_scores_to_file(neg, pos, filename, n_sys=1, five_col=False):
f.write('x%sy %s %f\n' % (s_five, s_name, i)) f.write('x%sy %s %f\n' % (s_five, s_name, i))
@click.command() @click.command(context_settings=common_options.CONTEXT_SETTINGS)
@click.argument('outdir') @click.argument('outdir')
@click.option('-mm', '--mean-match', default=10, type=FLOAT, show_default=True) @click.option('-mm', '--mean-match', default=10, type=FLOAT, show_default=True)
@click.option('-mnm', '--mean-non-match', default=-10, type=FLOAT, show_default=True) @click.option('-mnm', '--mean-non-match', default=-10, type=FLOAT, show_default=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment