Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SGS18-READEX
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Ondrej Vysocky
SGS18-READEX
Commits
fef984b5
Commit
fef984b5
authored
6 years ago
by
Ivo Peterek
Browse files
Options
Downloads
Patches
Plain Diff
ENH: parameter names must be unique
#2
parent
04bb0b7d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
radarGUI.py
+15
-0
15 additions, 0 deletions
radarGUI.py
with
15 additions
and
0 deletions
radarGUI.py
+
15
−
0
View file @
fef984b5
...
...
@@ -748,6 +748,21 @@ class Ui_TabWidget(object):
print
(
"
USER INPUT ERROR: While generating optimal settings file, atleast one parameter role must be specified.
"
)
user_input_error
=
True
parameters_name_unique
=
True
for
parameter
in
self
.
lineEdit_parameters_list
:
if
not
parameters_name_unique
:
user_input_error
=
True
break
parameter_name
=
parameter
.
text
()
for
other_parameter
in
self
.
lineEdit_parameters_list
:
if
parameter
==
other_parameter
:
continue
if
parameter_name
==
other_parameter
.
text
():
print
(
"
USER INPUT ERROR: Parameter names must be unique. Check parameter names.
"
)
parameters_name_unique
=
False
break
if
user_input_error
:
print
(
"
Please check USER INPUT ERRORS and try to generate config file again.
"
)
return
...
...
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