Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.pad.base
Commits
fcde800c
Commit
fcde800c
authored
Jun 29, 2018
by
Theophile GENTILHOMME
Browse files
CONTEXT_SETTINGS moved to bob.extension
parent
9ff51b21
Pipeline
#21471
canceled with stage
in 14 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/pad/base/script/pad_commands.py
View file @
fcde800c
...
...
@@ -2,7 +2,7 @@
"""
import
click
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
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
=
common_options
.
CONTEXT_SETTINGS
)
@
click
.
command
(
context_settings
=
CONTEXT_SETTINGS
)
@
click
.
argument
(
'outdir'
)
@
click
.
option
(
'-mm'
,
'--mean-match'
,
default
=
10
,
type
=
click
.
FLOAT
,
show_default
=
True
)
...
...
bob/pad/base/script/vuln_commands.py
View file @
fcde800c
...
...
@@ -7,7 +7,8 @@ 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
)
verbosity_option
,
bool_option
,
list_float_option
,
CONTEXT_SETTINGS
)
from
bob.core
import
random
from
bob.io.base
import
create_directories_safe
from
bob.bio.base.score
import
load
...
...
@@ -68,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
=
common_options
.
CONTEXT_SETTINGS
)
@
click
.
command
(
context_settings
=
CONTEXT_SETTINGS
)
@
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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment