Commit 266fae90 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME

Change --criter to --criterion

parent c7f75528
Pipeline #19415 failed with stage
in 47 minutes and 26 seconds
......@@ -189,7 +189,6 @@ class PadPlot(measure_figure.PlotBase):
super(PadPlot, self).__init__(ctx, scores, evaluation, func_load)
mpl.rcParams['figure.constrained_layout.use'] = self._clayout
def end_process(self):
'''Close pdf '''
#do not want to close PDF when running evaluate
......
......@@ -40,7 +40,7 @@ def hist(ctx, scores, evaluation, **kwargs):
$ bob pad hist dev-scores1 eval-scores1 dev-scores2
eval-scores2
$ bob pad hist --criter hter dev-scores1 eval-scores1
$ bob pad hist --criterion hter dev-scores1 eval-scores1
"""
process = figure.HistPad(ctx, scores, evaluation, load.split)
process.run()
......
......@@ -62,14 +62,14 @@ def test_hist():
assert result.exit_code == 0, (result.exit_code, result.output)
with runner.isolated_filesystem():
result = runner.invoke(histograms.hist, ['--criter', 'hter', '--output',
result = runner.invoke(histograms.hist, ['--criterion', 'hter', '--output',
'HISTO.pdf', '-b',
30, '--no-evaluation',
licit_dev, spoof_dev])
assert result.exit_code == 0, (result.exit_code, result.output)
with runner.isolated_filesystem():
result = runner.invoke(histograms.hist, ['--criter', 'eer', '--output',
result = runner.invoke(histograms.hist, ['--criterion', 'eer', '--output',
'HISTO.pdf', '-b', 30,
licit_dev, licit_test,
spoof_dev, spoof_test])
......@@ -86,7 +86,7 @@ def test_vuln():
'data/spoof/scores-eval')
runner = CliRunner()
with runner.isolated_filesystem():
result = runner.invoke(histograms.vuln, ['--criter', 'eer', '--output',
result = runner.invoke(histograms.vuln, ['--criterion', 'eer', '--output',
'HISTO.pdf', '-b', 30,
licit_dev, licit_test,
spoof_dev, spoof_test])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment