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.bio.base
Commits
7dd06f4c
Commit
7dd06f4c
authored
Jun 29, 2018
by
Theophile GENTILHOMME
Browse files
Rm things now in bob.extension
parent
9a55c8b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
bob/bio/base/script/commands.py
View file @
7dd06f4c
...
...
@@ -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
()
...
...
bob/bio/base/script/gen.py
View file @
7dd06f4c
...
...
@@ -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
)
...
...
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