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

[script][figure] Allows a number of legend > #systems

It is used to define custom legends for dev, eval plots
parent 7583924e
Pipeline #21227 passed with stage
in 10 minutes and 11 seconds
......@@ -62,8 +62,8 @@ class MeasureBase(object):
'Number of argument must be a non-zero multiple of %d' % self._min_arg
)
self.n_systems = int(len(scores) / self._min_arg)
if self._legends is not None and len(self._legends) != self.n_systems:
raise click.BadParameter("Number of legends must be equal to the "
if self._legends is not None and len(self._legends) < self.n_systems:
raise click.BadParameter("Number of legends must be >= to the "
"number of systems")
def run(self):
......
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