Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
bob.measure
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bob
bob.measure
Commits
b05d2d72
Commit
b05d2d72
authored
Jun 29, 2018
by
Theophile GENTILHOMME
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Context setting moved to bob.extension
parent
647700e5
Pipeline
#21469
canceled with stage
in 13 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
bob/measure/script/common_options.py
bob/measure/script/common_options.py
+3
-2
bob/measure/script/gen.py
bob/measure/script/gen.py
+3
-3
No files found.
bob/measure/script/common_options.py
View file @
b05d2d72
...
...
@@ -8,10 +8,11 @@ import matplotlib.pyplot as plt
import
tabulate
from
matplotlib.backends.backend_pdf
import
PdfPages
from
bob.extension.scripts.click_helper
import
(
bool_option
,
list_float_option
,
verbosity_option
,
open_file_mode_option
)
bool_option
,
list_float_option
,
verbosity_option
,
open_file_mode_option
,
CONTEXT_SETTINGS
)
LOGGER
=
logging
.
getLogger
(
__name__
)
CONTEXT_SETTINGS
=
dict
(
help_option_names
=
[
'-?'
,
'-h'
,
'--help'
])
def
scores_argument
(
min_arg
=
1
,
force_eval
=
False
,
**
kwargs
):
"""Get the argument for scores, and add `dev-scores` and `eval-scores` in
...
...
bob/measure/script/gen.py
View file @
b05d2d72
...
...
@@ -5,10 +5,10 @@ import logging
import
numpy
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
)
from
bob.core
import
random
from
bob.io.base
import
create_directories_safe
from
.
import
common_options
logger
=
logging
.
getLogger
(
__name__
)
...
...
@@ -74,7 +74,7 @@ def write_scores_to_file(neg, pos, filename):
f
.
write
(
text
)
@
click
.
command
(
context_settings
=
common_options
.
CONTEXT_SETTINGS
)
@
click
.
command
(
context_settings
=
CONTEXT_SETTINGS
)
@
click
.
argument
(
'outdir'
)
@
click
.
option
(
'--mean-neg'
,
default
=-
1
,
type
=
FLOAT
,
show_default
=
True
)
@
click
.
option
(
'--mean-pos'
,
default
=
1
,
type
=
FLOAT
,
show_default
=
True
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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