Commit 0d2c97d1 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME

[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
......@@ -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',
self._thres = ctx.meta.get('thres')
self._thres = check_list_value(
......@@ -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:
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:
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment