Skip to content
Snippets Groups Projects
Commit 7a7b01d3 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Merge branch 'groups_vs_group' into 'master'

Fixes #33

I am now checking that the ``--group`` and according options are not used w/o ``--sub-task``. 

A test case is yet missing, but will follow soon.

Note that I will need to modify ``bob.bio.gmm`` accordingly, unless someone finds a better and more generic solution to #33 

Accepting this merge will close #33.

See merge request !34
parents 6f0753ff 33d85e00
No related branches found
No related tags found
1 merge request!34Fixes #33
Pipeline #
...@@ -30,9 +30,17 @@ def parse_arguments(command_line_parameters, exclude_resources_from = []): ...@@ -30,9 +30,17 @@ def parse_arguments(command_line_parameters, exclude_resources_from = []):
help = argparse.SUPPRESS) #'The group for which the current action should be performed' help = argparse.SUPPRESS) #'The group for which the current action should be performed'
# now that we have set up everything, get the command line arguments # now that we have set up everything, get the command line arguments
return tools.initialize(parsers, command_line_parameters, args = tools.initialize(parsers, command_line_parameters,
skips = ['preprocessing', 'extractor-training', 'extraction', 'projector-training', 'projection', 'enroller-training', 'enrollment', 'score-computation', 'concatenation', 'calibration']) skips = ['preprocessing', 'extractor-training', 'extraction', 'projector-training', 'projection', 'enroller-training', 'enrollment', 'score-computation', 'concatenation', 'calibration'])
# check that none of the above arguments are used without the --sub-task
if args.sub_task is None:
if args.model_type is not None: raise ValueError("The option --model-type is an internal option and cannot be used to define experiments")
if args.score_type is not None: raise ValueError("The option --score-type is an internal option and cannot be used to define experiments")
if args.group is not None: raise ValueError("The option --group is an internal option and cannot be used to define experiments; did you mean to use --groups?")
return args
def add_jobs(args, submitter): def add_jobs(args, submitter):
"""Adds all (desired) jobs of the tool chain to the grid, or to the local list to be executed.""" """Adds all (desired) jobs of the tool chain to the grid, or to the local list to be executed."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment