Skip to content
Snippets Groups Projects
Commit 62ea8ca3 authored by Manuel Guenther's avatar Manuel Guenther
Browse files

Added dask clients to the list of options (and the default)

parent 1c3f542e
No related branches found
No related tags found
1 merge request!267Resolve "resources.py does not list dask clients"
Pipeline #56627 passed
......@@ -9,8 +9,8 @@ def resources(command_line_parameters = None):
import argparse
parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument("--types", '-t', nargs = '+',
choices = ('d', 'database', 'an', 'annotator', 'p', 'pipeline', 'c', 'config'),
default = ('d', 'an', 'p', 'c'),
choices = ('d', 'database', 'an', 'annotator', 'p', 'pipeline', 'c', 'config', 'C', 'dask'),
default = ('d', 'an', 'p', 'c', 'C'),
help = "Select the resource types that should be listed.")
parser.add_argument("--details", '-d', action='store_true', help = "Prints the complete configuration for all resources")
......@@ -43,6 +43,11 @@ def resources(command_line_parameters = None):
print ("\nList of registered configs. Configs may contain multiple resources and they also allow chain loading (see bob.extension docs on chain loading). Configs are used as arguments to commands such as vanilla-biometrics):")
print (bob.bio.base.list_resources('config', **kwargs))
if 'C' in args.types or 'dask' in args.types:
print ("\nList of registered dask clients")
print (bob.bio.base.list_resources('client', package_prefix = "dask.", **kwargs))
print()
def databases(command_line_parameters = None):
......
......@@ -27,6 +27,7 @@ valid_keywords = (
"extractor",
"algorithm",
"grid",
"client",
"config",
"annotator",
"pipeline",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment