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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esde
machine-learning
AMBS
Commits
d766dda2
Commit
d766dda2
authored
May 19, 2021
by
Michael Langguth
Browse files
Options
Downloads
Patches
Plain Diff
Some fixes in error-handling of config_preprocess_step1.py.
parent
d1f9bcb6
Branches
michael_issue#103_postprocess_flexible_number_samples
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#68042
passed
May 19, 2021
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
video_prediction_tools/utils/runscript_generator/config_preprocess_step1.py
+2
-2
2 additions, 2 deletions
...ools/utils/runscript_generator/config_preprocess_step1.py
with
2 additions
and
2 deletions
video_prediction_tools/utils/runscript_generator/config_preprocess_step1.py
+
2
−
2
View file @
d766dda2
...
@@ -247,13 +247,13 @@ class Config_Preprocess1(Config_runscript_base):
...
@@ -247,13 +247,13 @@ class Config_Preprocess1(Config_runscript_base):
if
not
status
:
if
not
status
:
inds_bad
=
[
i
for
i
,
e
in
enumerate
(
check_vars
)
if
e
]
# np.where(~np.array(check_vars))[0]
inds_bad
=
[
i
for
i
,
e
in
enumerate
(
check_vars
)
if
e
]
# np.where(~np.array(check_vars))[0]
if
not
silent
:
if
not
silent
:
print
(
"
%{0}: The following comma-separated elements are unknown variables:
"
.
format
(
method
_name
))
print
(
"
%{0}: The following comma-separated elements are unknown variables:
"
.
format
(
method
))
for
ind
in
inds_bad
:
for
ind
in
inds_bad
:
print
(
vars_list
[
ind
])
print
(
vars_list
[
ind
])
return
status
return
status
if
not
(
len
(
check_vars
)
==
Config_Preprocess1
.
nvars
or
len
(
check_vars
)
==
1
):
if
not
(
len
(
check_vars
)
==
Config_Preprocess1
.
nvars
or
len
(
check_vars
)
==
1
):
if
not
silent
:
print
(
"
%{0}: Unexpected number of variables passed
.
"
.
method
(
method
))
if
not
silent
:
print
(
"
%{0}: Unexpected number of variables passed
({1} vs. {2}).
"
.
format
(
method
,
len
(
check_vars
),
Config_Preprocess1
.
nvars
))
status
=
False
status
=
False
return
status
return
status
...
...
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
sign in
to comment