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
d2171e06
Commit
d2171e06
authored
6 years ago
by
Ondrej Vysocky
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev' of code.it4i.cz:vys0053/SGS18-READEX into dev
parents
4c3d5c0c
b51bbfad
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
+26
-7
26 additions, 7 deletions
radarGUI.py
with
26 additions
and
7 deletions
radarGUI.py
+
26
−
7
View file @
d2171e06
...
...
@@ -75,7 +75,7 @@ class Ui_TabWidget(object):
#csv_names[n] = item
for
k
,
v
in
self
.
parameter_values_dic
.
items
():
self
.
parameter_values_dic
[
k
]
=
sorted
(
list
(
set
(
v
)))
self
.
parameter_values_dic
[
k
]
=
sorted
(
list
(
set
(
v
))
,
reverse
=
True
)
measurement_info_path
=
Path
(
self
.
data_path
+
'
/measurementInfo.json
'
)
if
measurement_info_path
.
exists
():
...
...
@@ -491,7 +491,7 @@ class Ui_TabWidget(object):
self
.
comboBox_time
.
activated
.
connect
(
self
.
__combo_time_energy
)
self
.
comboBox_energy
.
activated
.
connect
(
self
.
__combo_time_energy
)
self
.
comboBox_opt_settings_list
=
[
self
.
comboBox_
NumThreads
,
self
.
comboBox_UncoreFreq
,
self
.
comboBox_
CoreFreq
]
self
.
comboBox_opt_settings_list
=
[
self
.
comboBox_
CoreFreq
,
self
.
comboBox_UncoreFreq
,
self
.
comboBox_
NumThreads
]
func_list
=
[]
for
i
,
e
in
enumerate
(
self
.
comboBox_opt_settings_list
):
func_list
.
append
((
lambda
tmp
:
lambda
:
self
.
__combo_opt_settings
(
self
.
comboBox_opt_settings_list
[
tmp
]))(
i
))
...
...
@@ -701,7 +701,7 @@ class Ui_TabWidget(object):
self
.
__refresh_opt_combos
()
def
__combo_opt_settings
(
self
,
current_combo_box
):
selected_item
=
current_combo_box
.
currentText
()
selected_item
=
current_combo_box
.
currentText
()
if
self
.
current_opt_items_dic
[
selected_item
]
!=
current_combo_box
:
tmp_key
=
None
...
...
@@ -725,12 +725,31 @@ class Ui_TabWidget(object):
self
.
__refresh_opt_combos
()
def
__generate_btn
(
self
):
user_input_error
=
False
if
not
self
.
current_labels_dic
[
'
xLabel
'
]:
print
(
"
xLabel is not specified. One of parameters must be xLabel.
"
)
return
print
(
"
USER INPUT ERROR:
xLabel is not specified. One of parameters must be xLabel.
"
)
user_input_error
=
True
if
not
self
.
current_labels_dic
[
'
funcLabel
'
]:
print
(
"
funcLabel is not specified. One of parameters must be funcLabel.
"
)
print
(
"
USER INPUT ERROR: funcLabel is not specified. One of parameters must be funcLabel.
"
)
user_input_error
=
True
if
len
(
self
.
selected_y_labels
)
==
0
:
print
(
"
USER INPUT ERROR: yLabel is not specified. Atleast one yLabel must be checked.
"
)
user_input_error
=
True
if
self
.
checkBox_GenerateOptSettingFile
.
isChecked
():
param_selected
=
False
for
combo_box
in
self
.
comboBox_opt_settings_list
:
if
combo_box
.
currentText
():
param_selected
=
True
break
if
not
param_selected
:
print
(
"
USER INPUT ERROR: While generating optimal settings file, atleast one parameter role must be specified.
"
)
user_input_error
=
True
if
user_input_error
:
print
(
"
Please check USER INPUT ERRORS and try to generate config file again.
"
)
return
dlg
=
QtWidgets
.
QFileDialog
()
...
...
@@ -739,7 +758,7 @@ class Ui_TabWidget(object):
if
not
save_file_path
.
endswith
(
'
.py
'
)
and
save_file_path
:
save_file_path
=
save_file_path
+
'
.py
'
if
save_file_path
:
print
(
'
sav
ing
config to file:
'
+
save_file_path
)
print
(
'
sav
ed
config to file:
'
+
save_file_path
)
self
.
__create_config
(
save_file_path
)
else
:
print
(
'
Error: You must enter filename!
'
)
...
...
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