From 7dd06f4cce2657b34a581dd81ca8da3186d4dade Mon Sep 17 00:00:00 2001 From: Theophile GENTILHOMME <tgentilhomme@jurasix08.idiap.ch> Date: Fri, 29 Jun 2018 13:50:05 +0200 Subject: [PATCH] Rm things now in bob.extension --- bob/bio/base/script/commands.py | 4 ++-- bob/bio/base/script/gen.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bob/bio/base/script/commands.py b/bob/bio/base/script/commands.py index 48b3e511..75262558 100644 --- a/bob/bio/base/script/commands.py +++ b/bob/bio/base/script/commands.py @@ -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, CONTEXT_SETTINGS +from bob.extension.scripts.click_helper import verbosity_option SCORE_FORMAT = ( @@ -141,7 +141,7 @@ def cmc(ctx, scores, evaluation, **kargs): process.run() -@click.command(context_settings=CONTEXT_SETTINGS) +@click.command() @common_options.scores_argument(nargs=-1) @common_options.titles_option() @common_options.legends_option() diff --git a/bob/bio/base/script/gen.py b/bob/bio/base/script/gen.py index 48f07700..0c4d3827 100644 --- a/bob/bio/base/script/gen.py +++ b/bob/bio/base/script/gen.py @@ -6,7 +6,7 @@ import numpy import random import click from click.types import FLOAT -from bob.extension.scripts.click_helper import verbosity_option, CONTEXT_SETTINGS +from bob.extension.scripts.click_helper import verbosity_option 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=CONTEXT_SETTINGS) +@click.command() @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) -- GitLab