Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.measure
Commits
0d2c97d1
Commit
0d2c97d1
authored
Jun 21, 2018
by
Theophile GENTILHOMME
Browse files
[script][figure,test_script] Fix nbins for hist: only depends on the #histos in the figure
parent
273614af
Pipeline
#21236
passed with stage
in 11 minutes and 9 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/measure/script/figure.py
View file @
0d2c97d1
...
...
@@ -565,7 +565,7 @@ class Hist(PlotBase):
self
.
_nbins
=
ctx
.
meta
.
get
(
'n_bins'
,
[
'doane'
])
self
.
_nhist_per_system
=
nhist_per_system
self
.
_nbins
=
check_list_value
(
self
.
_nbins
,
self
.
n_systems
*
nhist_per_system
,
'n_bins'
,
self
.
_nbins
,
nhist_per_system
,
'n_bins'
,
'histograms'
)
self
.
_thres
=
ctx
.
meta
.
get
(
'thres'
)
self
.
_thres
=
check_list_value
(
...
...
bob/measure/test_script.py
View file @
0d2c97d1
...
...
@@ -136,14 +136,14 @@ def test_hist():
result
=
runner
.
invoke
(
commands
.
hist
,
[
'--criterion'
,
'min-hter'
,
'--no-line'
,
'--output'
,
'HISTO.pdf'
,
'-b'
,
'30,100
,30,100
'
,
dev1
,
dev2
])
'30,100'
,
dev1
,
dev2
])
if
result
.
output
:
click
.
echo
(
result
.
output
)
assert
result
.
exit_code
==
0
,
(
result
.
exit_code
,
result
.
output
)
with
runner
.
isolated_filesystem
():
result
=
runner
.
invoke
(
commands
.
hist
,
[
'-e'
,
'--criterion'
,
'eer'
,
'--output'
,
'HISTO.pdf'
,
'-b'
,
'30,20
,30,20
'
,
'HISTO.pdf'
,
'-b'
,
'30,20'
,
'-sp'
,
221
,
'-lg'
,
'A,B'
,
dev1
,
test1
,
dev2
,
test2
])
if
result
.
output
:
...
...
Write
Preview
Supports
Markdown
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