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
c42fdf61
Commit
c42fdf61
authored
9 years ago
by
Manuel Günther
Browse files
Options
Downloads
Patches
Plain Diff
Improved video extension compatibility; made bin/resources.py more beautiful
parent
74539e24
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bob/bio/base/tools/grid.py
+3
-0
3 additions, 0 deletions
bob/bio/base/tools/grid.py
bob/bio/base/tools/preprocessor.py
+1
-1
1 addition, 1 deletion
bob/bio/base/tools/preprocessor.py
bob/bio/base/utils/resources.py
+4
-2
4 additions, 2 deletions
bob/bio/base/utils/resources.py
with
8 additions
and
3 deletions
bob/bio/base/tools/grid.py
+
3
−
0
View file @
c42fdf61
...
@@ -37,6 +37,9 @@ class GridSubmission:
...
@@ -37,6 +37,9 @@ class GridSubmission:
# find, where the executable is installed
# find, where the executable is installed
import
bob.extension
import
bob.extension
if
command_line_parameters
is
None
:
command_line_parameters
=
sys
.
argv
[
1
:]
executables
=
bob
.
extension
.
find_executable
(
executable
,
prefixes
=
[
'
bin
'
])
executables
=
bob
.
extension
.
find_executable
(
executable
,
prefixes
=
[
'
bin
'
])
if
not
len
(
executables
):
if
not
len
(
executables
):
raise
IOError
(
"
Could not find the
'
%s
'
executable.
"
%
executable
)
raise
IOError
(
"
Could not find the
'
%s
'
executable.
"
%
executable
)
...
...
This diff is collapsed.
Click to expand it.
bob/bio/base/tools/preprocessor.py
+
1
−
1
View file @
c42fdf61
...
@@ -34,7 +34,7 @@ def preprocess(preprocessor, groups=None, indices=None, force=False):
...
@@ -34,7 +34,7 @@ def preprocess(preprocessor, groups=None, indices=None, force=False):
# check for existence
# check for existence
if
not
utils
.
check_file
(
preprocessed_data_file
,
force
,
1000
):
if
not
utils
.
check_file
(
preprocessed_data_file
,
force
,
1000
):
file_name
=
str
(
data_files
[
i
]
)
file_name
=
data_files
[
i
]
data
=
preprocessor
.
read_original_data
(
file_name
)
data
=
preprocessor
.
read_original_data
(
file_name
)
# get the annotations; might be None
# get the annotations; might be None
...
...
This diff is collapsed.
Click to expand it.
bob/bio/base/utils/resources.py
+
4
−
2
View file @
c42fdf61
...
@@ -174,13 +174,15 @@ def list_resources(keyword, strip=['dummy']):
...
@@ -174,13 +174,15 @@ def list_resources(keyword, strip=['dummy']):
entry_points
=
_get_entry_points
(
keyword
,
strip
)
entry_points
=
_get_entry_points
(
keyword
,
strip
)
last_dist
=
None
last_dist
=
None
retval
=
""
retval
=
""
length
=
max
(
len
(
entry_point
.
name
)
for
entry_point
in
entry_points
)
for
entry_point
in
sorted
(
entry_points
):
for
entry_point
in
sorted
(
entry_points
):
if
last_dist
!=
str
(
entry_point
.
dist
):
if
last_dist
!=
str
(
entry_point
.
dist
):
retval
+=
"
\n
- %s:
\n
"
%
str
(
entry_point
.
dist
)
retval
+=
"
\n
- %s:
\n
"
%
str
(
entry_point
.
dist
)
last_dist
=
str
(
entry_point
.
dist
)
last_dist
=
str
(
entry_point
.
dist
)
if
len
(
entry_point
.
attrs
):
if
len
(
entry_point
.
attrs
):
retval
+=
"
+ %s
--> %s: %s
\n
"
%
(
entry_point
.
name
,
entry_point
.
module_name
,
entry_point
.
attrs
[
0
])
retval
+=
"
+ %s --> %s: %s
\n
"
%
(
entry_point
.
name
+
"
"
*
(
length
-
len
(
entry_point
.
name
))
,
entry_point
.
module_name
,
entry_point
.
attrs
[
0
])
else
:
else
:
retval
+=
"
+ %s
--> %s
\n
"
%
(
entry_point
.
name
,
entry_point
.
module_name
)
retval
+=
"
+ %s --> %s
\n
"
%
(
entry_point
.
name
+
"
"
*
(
length
-
len
(
entry_point
.
name
))
,
entry_point
.
module_name
)
return
retval
return
retval
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