Commit 9a55c8b7 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME

CONTEXT_SETTINGS moved to bob.extension

parent 64ed833f
......@@ -5,7 +5,7 @@ from . import figure as bio_figure
import bob.measure.script.figure as measure_figure
from ..score import load
from bob.measure.script import common_options
from bob.extension.scripts.click_helper import verbosity_option
from bob.extension.scripts.click_helper import verbosity_option, CONTEXT_SETTINGS
SCORE_FORMAT = (
......@@ -141,7 +141,7 @@ def cmc(ctx, scores, evaluation, **kargs):
process.run()
@click.command(context_settings=common_options.CONTEXT_SETTINGS)
@click.command(context_settings=CONTEXT_SETTINGS)
@common_options.scores_argument(nargs=-1)
@common_options.titles_option()
@common_options.legends_option()
......
......@@ -6,7 +6,7 @@ import numpy
import random
import click
from click.types import FLOAT
from bob.extension.scripts.click_helper import verbosity_option
from bob.extension.scripts.click_helper import verbosity_option, CONTEXT_SETTINGS
import bob.core
from bob.io.base import create_directories_safe
from bob.measure.script import common_options
......@@ -80,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))
@click.command(context_settings=common_options.CONTEXT_SETTINGS)
@click.command(context_settings=CONTEXT_SETTINGS)
@click.argument('outdir')
@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)
......
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