Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
AMBS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
esde
machine-learning
AMBS
Commits
e591027c
Commit
e591027c
authored
2 years ago
by
Michael Langguth
Browse files
Options
Downloads
Patches
Plain Diff
Some minor changes to the doc-strings of config_utils.py and generate_runscript.py.
parent
496662e7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
video_prediction_tools/env_setup/generate_runscript.py
+1
-1
1 addition, 1 deletion
video_prediction_tools/env_setup/generate_runscript.py
video_prediction_tools/utils/runscript_generator/config_utils.py
+4
-3
4 additions, 3 deletions
...rediction_tools/utils/runscript_generator/config_utils.py
with
5 additions
and
4 deletions
video_prediction_tools/env_setup/generate_runscript.py
+
1
−
1
View file @
e591027c
...
...
@@ -80,7 +80,7 @@ def main():
# get workflow step by keyboard interaction
target_runscript_req
=
"
Please enter the name of the workflow step for which a runscript should be created:
"
target_runscript_err
=
ValueError
(
"
Workflow step is unknown.
Please select one of the known listed above
"
)
target_runscript_err
=
ValueError
(
"
Please select one of the known listed above
.
"
)
def
check_target_runscript
(
runscript_name
,
silent
=
False
):
if
not
runscript_name
in
known_wrkflw_steps
:
...
...
This diff is collapsed.
Click to expand it.
video_prediction_tools/utils/runscript_generator/config_utils.py
+
4
−
3
View file @
e591027c
...
...
@@ -267,6 +267,7 @@ class Config_runscript_base:
:param console_str: Request printed to the console
:param check_input: function returning boolean which needs to be passed by input from keyboard interaction.
Must have two arguments with the latter being an optional bool called silent.
:param err: Error to be raised in case of failure
:param ntries: maximum number of tries (default: 1)
:param test_arg: test argument to check_input-function (default:
"
xxx
"
)
:param prefix2arg: optional prefix that might be added to string from keyboard-interaction before it enters
...
...
@@ -289,9 +290,9 @@ class Config_runscript_base:
pass
except
:
raise
Exception
(
"
%{0}: Cannot approve check_input-argument to be proper.
"
.
format
(
method_name
))
if
not
isinstance
(
err
,
BaseException
):
raise
ValueError
(
"
%{0}: err
_str
-argument must be an instance of BaseException!
"
.
format
(
method_name
))
if
not
isinstance
(
ntries
,
int
)
and
ntries
<=
1
:
if
not
isinstance
(
err
,
BaseException
):
raise
ValueError
(
"
%{0}: err-argument must be an instance of BaseException!
"
.
format
(
method_name
))
if
not
isinstance
(
ntries
,
int
)
and
ntries
<=
1
:
raise
ValueError
(
"
%{0}: ntries-argument must be an integer greater equal 1!
"
.
format
(
method_name
))
attempt
=
0
...
...
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