Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.bio.base
Commits
00e9b63b
Commit
00e9b63b
authored
3 years ago
by
Amir MOHAMMADI
Browse files
Options
Downloads
Plain Diff
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
!267
Resolve "resources.py does not list dask clients"
Pipeline
#56675
passed
3 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/bio/base/script/resources.py
+7
-2
7 additions, 2 deletions
bob/bio/base/script/resources.py
bob/bio/base/utils/resources.py
+1
-0
1 addition, 0 deletions
bob/bio/base/utils/resources.py
with
8 additions
and
2 deletions
bob/bio/base/script/resources.py
+
7
−
2
View file @
00e9b63b
...
...
@@ -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
(
"
\n
List 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
(
"
\n
List of registered dask clients
"
)
print
(
bob
.
bio
.
base
.
list_resources
(
'
client
'
,
package_prefix
=
"
dask.
"
,
**
kwargs
))
print
()
def
databases
(
command_line_parameters
=
None
):
...
...
This diff is collapsed.
Click to expand it.
bob/bio/base/utils/resources.py
+
1
−
0
View file @
00e9b63b
...
...
@@ -27,6 +27,7 @@ valid_keywords = (
"
extractor
"
,
"
algorithm
"
,
"
grid
"
,
"
client
"
,
"
config
"
,
"
annotator
"
,
"
pipeline
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment