Commit 09224b5f authored by Vincent POLLET's avatar Vincent POLLET

Add ResourceOption to all click options

parents fa01991f 8d81e184
Pipeline #49291 passed with stage
in 3 minutes and 40 seconds
...@@ -33,15 +33,16 @@ from bob.pipelines.distributed import dask_get_partition_size ...@@ -33,15 +33,16 @@ from bob.pipelines.distributed import dask_get_partition_size
"-f", "-f",
show_default=True, show_default=True,
default="decision_function", default="decision_function",
help="Name of the Pipeline step to call for results, eg 'score' or 'predict'" help="Name of the Pipeline step to call for results, eg 'score' or 'predict'",
cls=ResourceOption,
) )
@click.option( @click.option(
"--database", "--database",
"-d", "-d",
required=True, required=True,
cls=ResourceOption,
entry_point_group="bob.pad.database", entry_point_group="bob.pad.database",
help="PAD Database connector (class that implements the methods: `fit_samples`, `predict_samples`)", help="PAD Database connector (class that implements the methods: `fit_samples`, `predict_samples`)",
cls=ResourceOption,
) )
@click.option( @click.option(
"--dask-client", "--dask-client",
...@@ -60,6 +61,7 @@ from bob.pipelines.distributed import dask_get_partition_size ...@@ -60,6 +61,7 @@ from bob.pipelines.distributed import dask_get_partition_size
multiple=True, multiple=True,
default=("dev", "eval"), default=("dev", "eval"),
help="If given, this value will limit the experiments belonging to a particular group", help="If given, this value will limit the experiments belonging to a particular group",
cls=ResourceOption,
) )
@click.option( @click.option(
"-o", "-o",
...@@ -67,6 +69,7 @@ from bob.pipelines.distributed import dask_get_partition_size ...@@ -67,6 +69,7 @@ from bob.pipelines.distributed import dask_get_partition_size
show_default=True, show_default=True,
default="results", default="results",
help="Saves scores (and checkpoints) in this folder.", help="Saves scores (and checkpoints) in this folder.",
cls=ResourceOption,
) )
@click.option( @click.option(
"--checkpoint", "--checkpoint",
......
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