Skip to content
Snippets Groups Projects
Commit 00e9b63b authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Merge branch '168-resources-py-does-not-list-dask-clients' into 'master'

Resolve "resources.py does not list dask clients"

Closes #168

See merge request !267
parents 5090598f 62ea8ca3
No related branches found
No related tags found
1 merge request!267Resolve "resources.py does not list dask clients"
Pipeline #56675 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