accusleepy 0.6.0__py3-none-any.whl → 0.7.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- accusleepy/classification.py +29 -13
- accusleepy/config.json +14 -1
- accusleepy/constants.py +44 -6
- accusleepy/fileio.py +87 -36
- accusleepy/gui/images/primary_window.png +0 -0
- accusleepy/gui/main.py +133 -163
- accusleepy/gui/manual_scoring.py +45 -47
- accusleepy/gui/primary_window.py +760 -135
- accusleepy/gui/primary_window.ui +2934 -2122
- accusleepy/gui/text/main_guide.md +2 -1
- accusleepy/models.py +1 -12
- accusleepy/signal_processing.py +18 -17
- accusleepy/validation.py +128 -0
- {accusleepy-0.6.0.dist-info → accusleepy-0.7.1.dist-info}/METADATA +4 -1
- {accusleepy-0.6.0.dist-info → accusleepy-0.7.1.dist-info}/RECORD +16 -16
- accusleepy/gui/text/config_guide.txt +0 -27
- {accusleepy-0.6.0.dist-info → accusleepy-0.7.1.dist-info}/WHEEL +0 -0
accusleepy/gui/primary_window.py
CHANGED
|
@@ -8,10 +8,23 @@
|
|
|
8
8
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
|
9
9
|
################################################################################
|
|
10
10
|
|
|
11
|
-
from PySide6.QtCore import
|
|
12
|
-
|
|
11
|
+
from PySide6.QtCore import (
|
|
12
|
+
QCoreApplication,
|
|
13
|
+
QMetaObject,
|
|
14
|
+
QRect,
|
|
15
|
+
QSize,
|
|
16
|
+
Qt,
|
|
17
|
+
)
|
|
18
|
+
from PySide6.QtGui import (
|
|
19
|
+
QBrush,
|
|
20
|
+
QColor,
|
|
21
|
+
QFont,
|
|
22
|
+
QIcon,
|
|
23
|
+
QPalette,
|
|
24
|
+
)
|
|
13
25
|
from PySide6.QtWidgets import (
|
|
14
26
|
QCheckBox,
|
|
27
|
+
QComboBox,
|
|
15
28
|
QDoubleSpinBox,
|
|
16
29
|
QFrame,
|
|
17
30
|
QGridLayout,
|
|
@@ -25,6 +38,7 @@ from PySide6.QtWidgets import (
|
|
|
25
38
|
QSizePolicy,
|
|
26
39
|
QSpacerItem,
|
|
27
40
|
QSpinBox,
|
|
41
|
+
QStackedWidget,
|
|
28
42
|
QTabWidget,
|
|
29
43
|
QTextBrowser,
|
|
30
44
|
QVBoxLayout,
|
|
@@ -980,23 +994,92 @@ class Ui_PrimaryWindow(object):
|
|
|
980
994
|
self.settings_tab_layout.setHorizontalSpacing(20)
|
|
981
995
|
self.settings_tab_layout.setVerticalSpacing(10)
|
|
982
996
|
self.settings_tab_layout.setContentsMargins(20, 20, 20, -1)
|
|
983
|
-
self.
|
|
984
|
-
self.
|
|
985
|
-
self.
|
|
986
|
-
self.
|
|
987
|
-
self.
|
|
988
|
-
|
|
997
|
+
self.verticalLayout_3 = QVBoxLayout()
|
|
998
|
+
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
|
999
|
+
self.saveconfig_layout = QHBoxLayout()
|
|
1000
|
+
self.saveconfig_layout.setObjectName("saveconfig_layout")
|
|
1001
|
+
self.horizontalSpacer_79 = QSpacerItem(
|
|
1002
|
+
40, 20, QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Minimum
|
|
1003
|
+
)
|
|
989
1004
|
|
|
990
|
-
self.
|
|
1005
|
+
self.saveconfig_layout.addItem(self.horizontalSpacer_79)
|
|
1006
|
+
|
|
1007
|
+
self.save_config_button = QPushButton(self.settings_tab)
|
|
1008
|
+
self.save_config_button.setObjectName("save_config_button")
|
|
1009
|
+
sizePolicy1.setHeightForWidth(
|
|
1010
|
+
self.save_config_button.sizePolicy().hasHeightForWidth()
|
|
1011
|
+
)
|
|
1012
|
+
self.save_config_button.setSizePolicy(sizePolicy1)
|
|
1013
|
+
|
|
1014
|
+
self.saveconfig_layout.addWidget(self.save_config_button)
|
|
1015
|
+
|
|
1016
|
+
self.save_config_status = QLabel(self.settings_tab)
|
|
1017
|
+
self.save_config_status.setObjectName("save_config_status")
|
|
1018
|
+
sizePolicy3.setHeightForWidth(
|
|
1019
|
+
self.save_config_status.sizePolicy().hasHeightForWidth()
|
|
1020
|
+
)
|
|
1021
|
+
self.save_config_status.setSizePolicy(sizePolicy3)
|
|
1022
|
+
self.save_config_status.setStyleSheet("background-color: transparent;")
|
|
1023
|
+
|
|
1024
|
+
self.saveconfig_layout.addWidget(self.save_config_status)
|
|
1025
|
+
|
|
1026
|
+
self.saveconfig_layout.setStretch(0, 10)
|
|
1027
|
+
self.saveconfig_layout.setStretch(1, 2)
|
|
1028
|
+
self.saveconfig_layout.setStretch(2, 10)
|
|
1029
|
+
|
|
1030
|
+
self.verticalLayout_3.addLayout(self.saveconfig_layout)
|
|
991
1031
|
|
|
992
|
-
self.
|
|
1032
|
+
self.verticalSpacer_2 = QSpacerItem(
|
|
1033
|
+
20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding
|
|
1034
|
+
)
|
|
1035
|
+
|
|
1036
|
+
self.verticalLayout_3.addItem(self.verticalSpacer_2)
|
|
1037
|
+
|
|
1038
|
+
self.settings_tab_layout.addLayout(self.verticalLayout_3, 2, 0, 1, 1)
|
|
993
1039
|
|
|
1040
|
+
self.settings_layout = QVBoxLayout()
|
|
1041
|
+
self.settings_layout.setObjectName("settings_layout")
|
|
1042
|
+
self.settings_combo_layout = QHBoxLayout()
|
|
1043
|
+
self.settings_combo_layout.setSpacing(20)
|
|
1044
|
+
self.settings_combo_layout.setObjectName("settings_combo_layout")
|
|
1045
|
+
self.settings_combobox = QComboBox(self.settings_tab)
|
|
1046
|
+
self.settings_combobox.addItem("")
|
|
1047
|
+
self.settings_combobox.addItem("")
|
|
1048
|
+
self.settings_combobox.addItem("")
|
|
1049
|
+
self.settings_combobox.addItem("")
|
|
1050
|
+
self.settings_combobox.setObjectName("settings_combobox")
|
|
1051
|
+
sizePolicy3.setHeightForWidth(
|
|
1052
|
+
self.settings_combobox.sizePolicy().hasHeightForWidth()
|
|
1053
|
+
)
|
|
1054
|
+
self.settings_combobox.setSizePolicy(sizePolicy3)
|
|
1055
|
+
|
|
1056
|
+
self.settings_combo_layout.addWidget(self.settings_combobox)
|
|
1057
|
+
|
|
1058
|
+
self.horizontalSpacer_89 = QSpacerItem(
|
|
1059
|
+
5, 5, QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Minimum
|
|
1060
|
+
)
|
|
1061
|
+
|
|
1062
|
+
self.settings_combo_layout.addItem(self.horizontalSpacer_89)
|
|
1063
|
+
|
|
1064
|
+
self.settings_combo_layout.setStretch(0, 1)
|
|
1065
|
+
self.settings_combo_layout.setStretch(1, 3)
|
|
1066
|
+
|
|
1067
|
+
self.settings_layout.addLayout(self.settings_combo_layout)
|
|
1068
|
+
|
|
1069
|
+
self.settings_stack = QStackedWidget(self.settings_tab)
|
|
1070
|
+
self.settings_stack.setObjectName("settings_stack")
|
|
1071
|
+
self.brain_state_page = QWidget()
|
|
1072
|
+
self.brain_state_page.setObjectName("brain_state_page")
|
|
1073
|
+
self.horizontalLayout_80 = QHBoxLayout(self.brain_state_page)
|
|
1074
|
+
self.horizontalLayout_80.setSpacing(20)
|
|
1075
|
+
self.horizontalLayout_80.setObjectName("horizontalLayout_80")
|
|
994
1076
|
self.settings_controls_layout = QVBoxLayout()
|
|
1077
|
+
self.settings_controls_layout.setSpacing(10)
|
|
995
1078
|
self.settings_controls_layout.setObjectName("settings_controls_layout")
|
|
996
1079
|
self.horizontalLayout_3 = QHBoxLayout()
|
|
997
1080
|
self.horizontalLayout_3.setSpacing(10)
|
|
998
1081
|
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
|
999
|
-
self.label_15 = QLabel(self.
|
|
1082
|
+
self.label_15 = QLabel(self.brain_state_page)
|
|
1000
1083
|
self.label_15.setObjectName("label_15")
|
|
1001
1084
|
sizePolicy3.setHeightForWidth(self.label_15.sizePolicy().hasHeightForWidth())
|
|
1002
1085
|
self.label_15.setSizePolicy(sizePolicy3)
|
|
@@ -1004,7 +1087,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1004
1087
|
|
|
1005
1088
|
self.horizontalLayout_3.addWidget(self.label_15)
|
|
1006
1089
|
|
|
1007
|
-
self.label_14 = QLabel(self.
|
|
1090
|
+
self.label_14 = QLabel(self.brain_state_page)
|
|
1008
1091
|
self.label_14.setObjectName("label_14")
|
|
1009
1092
|
sizePolicy3.setHeightForWidth(self.label_14.sizePolicy().hasHeightForWidth())
|
|
1010
1093
|
self.label_14.setSizePolicy(sizePolicy3)
|
|
@@ -1012,7 +1095,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1012
1095
|
|
|
1013
1096
|
self.horizontalLayout_3.addWidget(self.label_14)
|
|
1014
1097
|
|
|
1015
|
-
self.label_16 = QLabel(self.
|
|
1098
|
+
self.label_16 = QLabel(self.brain_state_page)
|
|
1016
1099
|
self.label_16.setObjectName("label_16")
|
|
1017
1100
|
sizePolicy3.setHeightForWidth(self.label_16.sizePolicy().hasHeightForWidth())
|
|
1018
1101
|
self.label_16.setSizePolicy(sizePolicy3)
|
|
@@ -1020,7 +1103,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1020
1103
|
|
|
1021
1104
|
self.horizontalLayout_3.addWidget(self.label_16)
|
|
1022
1105
|
|
|
1023
|
-
self.label_13 = QLabel(self.
|
|
1106
|
+
self.label_13 = QLabel(self.brain_state_page)
|
|
1024
1107
|
self.label_13.setObjectName("label_13")
|
|
1025
1108
|
sizePolicy3.setHeightForWidth(self.label_13.sizePolicy().hasHeightForWidth())
|
|
1026
1109
|
self.label_13.setSizePolicy(sizePolicy3)
|
|
@@ -1028,7 +1111,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1028
1111
|
|
|
1029
1112
|
self.horizontalLayout_3.addWidget(self.label_13)
|
|
1030
1113
|
|
|
1031
|
-
self.label_18 = QLabel(self.
|
|
1114
|
+
self.label_18 = QLabel(self.brain_state_page)
|
|
1032
1115
|
self.label_18.setObjectName("label_18")
|
|
1033
1116
|
sizePolicy6 = QSizePolicy(QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed)
|
|
1034
1117
|
sizePolicy6.setHorizontalStretch(0)
|
|
@@ -1052,7 +1135,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1052
1135
|
self.horizontalLayout_17.setObjectName("horizontalLayout_17")
|
|
1053
1136
|
self.horizontalLayout_19 = QHBoxLayout()
|
|
1054
1137
|
self.horizontalLayout_19.setObjectName("horizontalLayout_19")
|
|
1055
|
-
self.label_12 = QLabel(self.
|
|
1138
|
+
self.label_12 = QLabel(self.brain_state_page)
|
|
1056
1139
|
self.label_12.setObjectName("label_12")
|
|
1057
1140
|
sizePolicy.setHeightForWidth(self.label_12.sizePolicy().hasHeightForWidth())
|
|
1058
1141
|
self.label_12.setSizePolicy(sizePolicy)
|
|
@@ -1073,7 +1156,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1073
1156
|
|
|
1074
1157
|
self.horizontalLayout_20.addItem(self.horizontalSpacer_12)
|
|
1075
1158
|
|
|
1076
|
-
self.enable_state_1 = QCheckBox(self.
|
|
1159
|
+
self.enable_state_1 = QCheckBox(self.brain_state_page)
|
|
1077
1160
|
self.enable_state_1.setObjectName("enable_state_1")
|
|
1078
1161
|
sizePolicy1.setHeightForWidth(
|
|
1079
1162
|
self.enable_state_1.sizePolicy().hasHeightForWidth()
|
|
@@ -1090,7 +1173,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1090
1173
|
|
|
1091
1174
|
self.horizontalLayout_17.addLayout(self.horizontalLayout_20)
|
|
1092
1175
|
|
|
1093
|
-
self.state_name_1 = QLineEdit(self.
|
|
1176
|
+
self.state_name_1 = QLineEdit(self.brain_state_page)
|
|
1094
1177
|
self.state_name_1.setObjectName("state_name_1")
|
|
1095
1178
|
sizePolicy3.setHeightForWidth(
|
|
1096
1179
|
self.state_name_1.sizePolicy().hasHeightForWidth()
|
|
@@ -1108,7 +1191,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1108
1191
|
|
|
1109
1192
|
self.horizontalLayout_21.addItem(self.horizontalSpacer_14)
|
|
1110
1193
|
|
|
1111
|
-
self.state_scored_1 = QCheckBox(self.
|
|
1194
|
+
self.state_scored_1 = QCheckBox(self.brain_state_page)
|
|
1112
1195
|
self.state_scored_1.setObjectName("state_scored_1")
|
|
1113
1196
|
sizePolicy1.setHeightForWidth(
|
|
1114
1197
|
self.state_scored_1.sizePolicy().hasHeightForWidth()
|
|
@@ -1134,7 +1217,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1134
1217
|
|
|
1135
1218
|
self.horizontalLayout_22.addItem(self.horizontalSpacer_10)
|
|
1136
1219
|
|
|
1137
|
-
self.state_frequency_1 = QDoubleSpinBox(self.
|
|
1220
|
+
self.state_frequency_1 = QDoubleSpinBox(self.brain_state_page)
|
|
1138
1221
|
self.state_frequency_1.setObjectName("state_frequency_1")
|
|
1139
1222
|
self.state_frequency_1.setMaximum(1.000000000000000)
|
|
1140
1223
|
self.state_frequency_1.setSingleStep(0.010000000000000)
|
|
@@ -1162,7 +1245,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1162
1245
|
self.horizontalLayout_16.setObjectName("horizontalLayout_16")
|
|
1163
1246
|
self.horizontalLayout_23 = QHBoxLayout()
|
|
1164
1247
|
self.horizontalLayout_23.setObjectName("horizontalLayout_23")
|
|
1165
|
-
self.label_11 = QLabel(self.
|
|
1248
|
+
self.label_11 = QLabel(self.brain_state_page)
|
|
1166
1249
|
self.label_11.setObjectName("label_11")
|
|
1167
1250
|
sizePolicy.setHeightForWidth(self.label_11.sizePolicy().hasHeightForWidth())
|
|
1168
1251
|
self.label_11.setSizePolicy(sizePolicy)
|
|
@@ -1181,7 +1264,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1181
1264
|
|
|
1182
1265
|
self.horizontalLayout_24.addItem(self.horizontalSpacer_16)
|
|
1183
1266
|
|
|
1184
|
-
self.enable_state_2 = QCheckBox(self.
|
|
1267
|
+
self.enable_state_2 = QCheckBox(self.brain_state_page)
|
|
1185
1268
|
self.enable_state_2.setObjectName("enable_state_2")
|
|
1186
1269
|
sizePolicy1.setHeightForWidth(
|
|
1187
1270
|
self.enable_state_2.sizePolicy().hasHeightForWidth()
|
|
@@ -1198,7 +1281,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1198
1281
|
|
|
1199
1282
|
self.horizontalLayout_16.addLayout(self.horizontalLayout_24)
|
|
1200
1283
|
|
|
1201
|
-
self.state_name_2 = QLineEdit(self.
|
|
1284
|
+
self.state_name_2 = QLineEdit(self.brain_state_page)
|
|
1202
1285
|
self.state_name_2.setObjectName("state_name_2")
|
|
1203
1286
|
sizePolicy3.setHeightForWidth(
|
|
1204
1287
|
self.state_name_2.sizePolicy().hasHeightForWidth()
|
|
@@ -1215,7 +1298,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1215
1298
|
|
|
1216
1299
|
self.horizontalLayout_26.addItem(self.horizontalSpacer_18)
|
|
1217
1300
|
|
|
1218
|
-
self.state_scored_2 = QCheckBox(self.
|
|
1301
|
+
self.state_scored_2 = QCheckBox(self.brain_state_page)
|
|
1219
1302
|
self.state_scored_2.setObjectName("state_scored_2")
|
|
1220
1303
|
sizePolicy1.setHeightForWidth(
|
|
1221
1304
|
self.state_scored_2.sizePolicy().hasHeightForWidth()
|
|
@@ -1241,7 +1324,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1241
1324
|
|
|
1242
1325
|
self.horizontalLayout_25.addItem(self.horizontalSpacer_52)
|
|
1243
1326
|
|
|
1244
|
-
self.state_frequency_2 = QDoubleSpinBox(self.
|
|
1327
|
+
self.state_frequency_2 = QDoubleSpinBox(self.brain_state_page)
|
|
1245
1328
|
self.state_frequency_2.setObjectName("state_frequency_2")
|
|
1246
1329
|
self.state_frequency_2.setMaximum(1.000000000000000)
|
|
1247
1330
|
self.state_frequency_2.setSingleStep(0.010000000000000)
|
|
@@ -1269,7 +1352,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1269
1352
|
self.horizontalLayout_15.setObjectName("horizontalLayout_15")
|
|
1270
1353
|
self.horizontalLayout_28 = QHBoxLayout()
|
|
1271
1354
|
self.horizontalLayout_28.setObjectName("horizontalLayout_28")
|
|
1272
|
-
self.label_10 = QLabel(self.
|
|
1355
|
+
self.label_10 = QLabel(self.brain_state_page)
|
|
1273
1356
|
self.label_10.setObjectName("label_10")
|
|
1274
1357
|
sizePolicy.setHeightForWidth(self.label_10.sizePolicy().hasHeightForWidth())
|
|
1275
1358
|
self.label_10.setSizePolicy(sizePolicy)
|
|
@@ -1288,7 +1371,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1288
1371
|
|
|
1289
1372
|
self.horizontalLayout_29.addItem(self.horizontalSpacer_20)
|
|
1290
1373
|
|
|
1291
|
-
self.enable_state_3 = QCheckBox(self.
|
|
1374
|
+
self.enable_state_3 = QCheckBox(self.brain_state_page)
|
|
1292
1375
|
self.enable_state_3.setObjectName("enable_state_3")
|
|
1293
1376
|
sizePolicy1.setHeightForWidth(
|
|
1294
1377
|
self.enable_state_3.sizePolicy().hasHeightForWidth()
|
|
@@ -1305,7 +1388,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1305
1388
|
|
|
1306
1389
|
self.horizontalLayout_15.addLayout(self.horizontalLayout_29)
|
|
1307
1390
|
|
|
1308
|
-
self.state_name_3 = QLineEdit(self.
|
|
1391
|
+
self.state_name_3 = QLineEdit(self.brain_state_page)
|
|
1309
1392
|
self.state_name_3.setObjectName("state_name_3")
|
|
1310
1393
|
sizePolicy3.setHeightForWidth(
|
|
1311
1394
|
self.state_name_3.sizePolicy().hasHeightForWidth()
|
|
@@ -1322,7 +1405,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1322
1405
|
|
|
1323
1406
|
self.horizontalLayout_30.addItem(self.horizontalSpacer_22)
|
|
1324
1407
|
|
|
1325
|
-
self.state_scored_3 = QCheckBox(self.
|
|
1408
|
+
self.state_scored_3 = QCheckBox(self.brain_state_page)
|
|
1326
1409
|
self.state_scored_3.setObjectName("state_scored_3")
|
|
1327
1410
|
sizePolicy1.setHeightForWidth(
|
|
1328
1411
|
self.state_scored_3.sizePolicy().hasHeightForWidth()
|
|
@@ -1348,7 +1431,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1348
1431
|
|
|
1349
1432
|
self.horizontalLayout_27.addItem(self.horizontalSpacer_55)
|
|
1350
1433
|
|
|
1351
|
-
self.state_frequency_3 = QDoubleSpinBox(self.
|
|
1434
|
+
self.state_frequency_3 = QDoubleSpinBox(self.brain_state_page)
|
|
1352
1435
|
self.state_frequency_3.setObjectName("state_frequency_3")
|
|
1353
1436
|
self.state_frequency_3.setMaximum(1.000000000000000)
|
|
1354
1437
|
self.state_frequency_3.setSingleStep(0.010000000000000)
|
|
@@ -1376,7 +1459,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1376
1459
|
self.horizontalLayout_14.setObjectName("horizontalLayout_14")
|
|
1377
1460
|
self.horizontalLayout_31 = QHBoxLayout()
|
|
1378
1461
|
self.horizontalLayout_31.setObjectName("horizontalLayout_31")
|
|
1379
|
-
self.label_9 = QLabel(self.
|
|
1462
|
+
self.label_9 = QLabel(self.brain_state_page)
|
|
1380
1463
|
self.label_9.setObjectName("label_9")
|
|
1381
1464
|
sizePolicy.setHeightForWidth(self.label_9.sizePolicy().hasHeightForWidth())
|
|
1382
1465
|
self.label_9.setSizePolicy(sizePolicy)
|
|
@@ -1395,7 +1478,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1395
1478
|
|
|
1396
1479
|
self.horizontalLayout_45.addItem(self.horizontalSpacer_24)
|
|
1397
1480
|
|
|
1398
|
-
self.enable_state_4 = QCheckBox(self.
|
|
1481
|
+
self.enable_state_4 = QCheckBox(self.brain_state_page)
|
|
1399
1482
|
self.enable_state_4.setObjectName("enable_state_4")
|
|
1400
1483
|
sizePolicy1.setHeightForWidth(
|
|
1401
1484
|
self.enable_state_4.sizePolicy().hasHeightForWidth()
|
|
@@ -1412,7 +1495,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1412
1495
|
|
|
1413
1496
|
self.horizontalLayout_14.addLayout(self.horizontalLayout_45)
|
|
1414
1497
|
|
|
1415
|
-
self.state_name_4 = QLineEdit(self.
|
|
1498
|
+
self.state_name_4 = QLineEdit(self.brain_state_page)
|
|
1416
1499
|
self.state_name_4.setObjectName("state_name_4")
|
|
1417
1500
|
sizePolicy3.setHeightForWidth(
|
|
1418
1501
|
self.state_name_4.sizePolicy().hasHeightForWidth()
|
|
@@ -1429,7 +1512,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1429
1512
|
|
|
1430
1513
|
self.horizontalLayout_52.addItem(self.horizontalSpacer_26)
|
|
1431
1514
|
|
|
1432
|
-
self.state_scored_4 = QCheckBox(self.
|
|
1515
|
+
self.state_scored_4 = QCheckBox(self.brain_state_page)
|
|
1433
1516
|
self.state_scored_4.setObjectName("state_scored_4")
|
|
1434
1517
|
sizePolicy1.setHeightForWidth(
|
|
1435
1518
|
self.state_scored_4.sizePolicy().hasHeightForWidth()
|
|
@@ -1455,7 +1538,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1455
1538
|
|
|
1456
1539
|
self.horizontalLayout_38.addItem(self.horizontalSpacer_57)
|
|
1457
1540
|
|
|
1458
|
-
self.state_frequency_4 = QDoubleSpinBox(self.
|
|
1541
|
+
self.state_frequency_4 = QDoubleSpinBox(self.brain_state_page)
|
|
1459
1542
|
self.state_frequency_4.setObjectName("state_frequency_4")
|
|
1460
1543
|
self.state_frequency_4.setMaximum(1.000000000000000)
|
|
1461
1544
|
self.state_frequency_4.setSingleStep(0.010000000000000)
|
|
@@ -1483,7 +1566,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1483
1566
|
self.horizontalLayout_13.setObjectName("horizontalLayout_13")
|
|
1484
1567
|
self.horizontalLayout_32 = QHBoxLayout()
|
|
1485
1568
|
self.horizontalLayout_32.setObjectName("horizontalLayout_32")
|
|
1486
|
-
self.label_8 = QLabel(self.
|
|
1569
|
+
self.label_8 = QLabel(self.brain_state_page)
|
|
1487
1570
|
self.label_8.setObjectName("label_8")
|
|
1488
1571
|
sizePolicy.setHeightForWidth(self.label_8.sizePolicy().hasHeightForWidth())
|
|
1489
1572
|
self.label_8.setSizePolicy(sizePolicy)
|
|
@@ -1502,7 +1585,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1502
1585
|
|
|
1503
1586
|
self.horizontalLayout_46.addItem(self.horizontalSpacer_29)
|
|
1504
1587
|
|
|
1505
|
-
self.enable_state_5 = QCheckBox(self.
|
|
1588
|
+
self.enable_state_5 = QCheckBox(self.brain_state_page)
|
|
1506
1589
|
self.enable_state_5.setObjectName("enable_state_5")
|
|
1507
1590
|
sizePolicy1.setHeightForWidth(
|
|
1508
1591
|
self.enable_state_5.sizePolicy().hasHeightForWidth()
|
|
@@ -1519,7 +1602,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1519
1602
|
|
|
1520
1603
|
self.horizontalLayout_13.addLayout(self.horizontalLayout_46)
|
|
1521
1604
|
|
|
1522
|
-
self.state_name_5 = QLineEdit(self.
|
|
1605
|
+
self.state_name_5 = QLineEdit(self.brain_state_page)
|
|
1523
1606
|
self.state_name_5.setObjectName("state_name_5")
|
|
1524
1607
|
sizePolicy3.setHeightForWidth(
|
|
1525
1608
|
self.state_name_5.sizePolicy().hasHeightForWidth()
|
|
@@ -1536,7 +1619,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1536
1619
|
|
|
1537
1620
|
self.horizontalLayout_53.addItem(self.horizontalSpacer_27)
|
|
1538
1621
|
|
|
1539
|
-
self.state_scored_5 = QCheckBox(self.
|
|
1622
|
+
self.state_scored_5 = QCheckBox(self.brain_state_page)
|
|
1540
1623
|
self.state_scored_5.setObjectName("state_scored_5")
|
|
1541
1624
|
sizePolicy1.setHeightForWidth(
|
|
1542
1625
|
self.state_scored_5.sizePolicy().hasHeightForWidth()
|
|
@@ -1562,7 +1645,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1562
1645
|
|
|
1563
1646
|
self.horizontalLayout_39.addItem(self.horizontalSpacer_59)
|
|
1564
1647
|
|
|
1565
|
-
self.state_frequency_5 = QDoubleSpinBox(self.
|
|
1648
|
+
self.state_frequency_5 = QDoubleSpinBox(self.brain_state_page)
|
|
1566
1649
|
self.state_frequency_5.setObjectName("state_frequency_5")
|
|
1567
1650
|
self.state_frequency_5.setMaximum(1.000000000000000)
|
|
1568
1651
|
self.state_frequency_5.setSingleStep(0.010000000000000)
|
|
@@ -1590,7 +1673,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1590
1673
|
self.horizontalLayout_12.setObjectName("horizontalLayout_12")
|
|
1591
1674
|
self.horizontalLayout_33 = QHBoxLayout()
|
|
1592
1675
|
self.horizontalLayout_33.setObjectName("horizontalLayout_33")
|
|
1593
|
-
self.label_7 = QLabel(self.
|
|
1676
|
+
self.label_7 = QLabel(self.brain_state_page)
|
|
1594
1677
|
self.label_7.setObjectName("label_7")
|
|
1595
1678
|
sizePolicy.setHeightForWidth(self.label_7.sizePolicy().hasHeightForWidth())
|
|
1596
1679
|
self.label_7.setSizePolicy(sizePolicy)
|
|
@@ -1609,7 +1692,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1609
1692
|
|
|
1610
1693
|
self.horizontalLayout_47.addItem(self.horizontalSpacer_32)
|
|
1611
1694
|
|
|
1612
|
-
self.enable_state_6 = QCheckBox(self.
|
|
1695
|
+
self.enable_state_6 = QCheckBox(self.brain_state_page)
|
|
1613
1696
|
self.enable_state_6.setObjectName("enable_state_6")
|
|
1614
1697
|
sizePolicy1.setHeightForWidth(
|
|
1615
1698
|
self.enable_state_6.sizePolicy().hasHeightForWidth()
|
|
@@ -1626,7 +1709,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1626
1709
|
|
|
1627
1710
|
self.horizontalLayout_12.addLayout(self.horizontalLayout_47)
|
|
1628
1711
|
|
|
1629
|
-
self.state_name_6 = QLineEdit(self.
|
|
1712
|
+
self.state_name_6 = QLineEdit(self.brain_state_page)
|
|
1630
1713
|
self.state_name_6.setObjectName("state_name_6")
|
|
1631
1714
|
sizePolicy3.setHeightForWidth(
|
|
1632
1715
|
self.state_name_6.sizePolicy().hasHeightForWidth()
|
|
@@ -1643,7 +1726,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1643
1726
|
|
|
1644
1727
|
self.horizontalLayout_54.addItem(self.horizontalSpacer_34)
|
|
1645
1728
|
|
|
1646
|
-
self.state_scored_6 = QCheckBox(self.
|
|
1729
|
+
self.state_scored_6 = QCheckBox(self.brain_state_page)
|
|
1647
1730
|
self.state_scored_6.setObjectName("state_scored_6")
|
|
1648
1731
|
sizePolicy1.setHeightForWidth(
|
|
1649
1732
|
self.state_scored_6.sizePolicy().hasHeightForWidth()
|
|
@@ -1669,7 +1752,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1669
1752
|
|
|
1670
1753
|
self.horizontalLayout_40.addItem(self.horizontalSpacer_61)
|
|
1671
1754
|
|
|
1672
|
-
self.state_frequency_6 = QDoubleSpinBox(self.
|
|
1755
|
+
self.state_frequency_6 = QDoubleSpinBox(self.brain_state_page)
|
|
1673
1756
|
self.state_frequency_6.setObjectName("state_frequency_6")
|
|
1674
1757
|
self.state_frequency_6.setMaximum(1.000000000000000)
|
|
1675
1758
|
self.state_frequency_6.setSingleStep(0.010000000000000)
|
|
@@ -1697,7 +1780,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1697
1780
|
self.horizontalLayout_9.setObjectName("horizontalLayout_9")
|
|
1698
1781
|
self.horizontalLayout_34 = QHBoxLayout()
|
|
1699
1782
|
self.horizontalLayout_34.setObjectName("horizontalLayout_34")
|
|
1700
|
-
self.label_6 = QLabel(self.
|
|
1783
|
+
self.label_6 = QLabel(self.brain_state_page)
|
|
1701
1784
|
self.label_6.setObjectName("label_6")
|
|
1702
1785
|
sizePolicy.setHeightForWidth(self.label_6.sizePolicy().hasHeightForWidth())
|
|
1703
1786
|
self.label_6.setSizePolicy(sizePolicy)
|
|
@@ -1716,7 +1799,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1716
1799
|
|
|
1717
1800
|
self.horizontalLayout_48.addItem(self.horizontalSpacer_36)
|
|
1718
1801
|
|
|
1719
|
-
self.enable_state_7 = QCheckBox(self.
|
|
1802
|
+
self.enable_state_7 = QCheckBox(self.brain_state_page)
|
|
1720
1803
|
self.enable_state_7.setObjectName("enable_state_7")
|
|
1721
1804
|
sizePolicy1.setHeightForWidth(
|
|
1722
1805
|
self.enable_state_7.sizePolicy().hasHeightForWidth()
|
|
@@ -1733,7 +1816,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1733
1816
|
|
|
1734
1817
|
self.horizontalLayout_9.addLayout(self.horizontalLayout_48)
|
|
1735
1818
|
|
|
1736
|
-
self.state_name_7 = QLineEdit(self.
|
|
1819
|
+
self.state_name_7 = QLineEdit(self.brain_state_page)
|
|
1737
1820
|
self.state_name_7.setObjectName("state_name_7")
|
|
1738
1821
|
sizePolicy3.setHeightForWidth(
|
|
1739
1822
|
self.state_name_7.sizePolicy().hasHeightForWidth()
|
|
@@ -1750,7 +1833,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1750
1833
|
|
|
1751
1834
|
self.horizontalLayout_55.addItem(self.horizontalSpacer_38)
|
|
1752
1835
|
|
|
1753
|
-
self.state_scored_7 = QCheckBox(self.
|
|
1836
|
+
self.state_scored_7 = QCheckBox(self.brain_state_page)
|
|
1754
1837
|
self.state_scored_7.setObjectName("state_scored_7")
|
|
1755
1838
|
sizePolicy1.setHeightForWidth(
|
|
1756
1839
|
self.state_scored_7.sizePolicy().hasHeightForWidth()
|
|
@@ -1776,7 +1859,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1776
1859
|
|
|
1777
1860
|
self.horizontalLayout_41.addItem(self.horizontalSpacer_63)
|
|
1778
1861
|
|
|
1779
|
-
self.state_frequency_7 = QDoubleSpinBox(self.
|
|
1862
|
+
self.state_frequency_7 = QDoubleSpinBox(self.brain_state_page)
|
|
1780
1863
|
self.state_frequency_7.setObjectName("state_frequency_7")
|
|
1781
1864
|
self.state_frequency_7.setMaximum(1.000000000000000)
|
|
1782
1865
|
self.state_frequency_7.setSingleStep(0.010000000000000)
|
|
@@ -1804,7 +1887,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1804
1887
|
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
|
|
1805
1888
|
self.horizontalLayout_35 = QHBoxLayout()
|
|
1806
1889
|
self.horizontalLayout_35.setObjectName("horizontalLayout_35")
|
|
1807
|
-
self.label_5 = QLabel(self.
|
|
1890
|
+
self.label_5 = QLabel(self.brain_state_page)
|
|
1808
1891
|
self.label_5.setObjectName("label_5")
|
|
1809
1892
|
sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth())
|
|
1810
1893
|
self.label_5.setSizePolicy(sizePolicy)
|
|
@@ -1823,7 +1906,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1823
1906
|
|
|
1824
1907
|
self.horizontalLayout_49.addItem(self.horizontalSpacer_40)
|
|
1825
1908
|
|
|
1826
|
-
self.enable_state_8 = QCheckBox(self.
|
|
1909
|
+
self.enable_state_8 = QCheckBox(self.brain_state_page)
|
|
1827
1910
|
self.enable_state_8.setObjectName("enable_state_8")
|
|
1828
1911
|
sizePolicy1.setHeightForWidth(
|
|
1829
1912
|
self.enable_state_8.sizePolicy().hasHeightForWidth()
|
|
@@ -1840,7 +1923,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1840
1923
|
|
|
1841
1924
|
self.horizontalLayout_8.addLayout(self.horizontalLayout_49)
|
|
1842
1925
|
|
|
1843
|
-
self.state_name_8 = QLineEdit(self.
|
|
1926
|
+
self.state_name_8 = QLineEdit(self.brain_state_page)
|
|
1844
1927
|
self.state_name_8.setObjectName("state_name_8")
|
|
1845
1928
|
sizePolicy3.setHeightForWidth(
|
|
1846
1929
|
self.state_name_8.sizePolicy().hasHeightForWidth()
|
|
@@ -1857,7 +1940,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1857
1940
|
|
|
1858
1941
|
self.horizontalLayout_56.addItem(self.horizontalSpacer_42)
|
|
1859
1942
|
|
|
1860
|
-
self.state_scored_8 = QCheckBox(self.
|
|
1943
|
+
self.state_scored_8 = QCheckBox(self.brain_state_page)
|
|
1861
1944
|
self.state_scored_8.setObjectName("state_scored_8")
|
|
1862
1945
|
sizePolicy1.setHeightForWidth(
|
|
1863
1946
|
self.state_scored_8.sizePolicy().hasHeightForWidth()
|
|
@@ -1883,7 +1966,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1883
1966
|
|
|
1884
1967
|
self.horizontalLayout_42.addItem(self.horizontalSpacer_65)
|
|
1885
1968
|
|
|
1886
|
-
self.state_frequency_8 = QDoubleSpinBox(self.
|
|
1969
|
+
self.state_frequency_8 = QDoubleSpinBox(self.brain_state_page)
|
|
1887
1970
|
self.state_frequency_8.setObjectName("state_frequency_8")
|
|
1888
1971
|
self.state_frequency_8.setMaximum(1.000000000000000)
|
|
1889
1972
|
self.state_frequency_8.setSingleStep(0.010000000000000)
|
|
@@ -1911,7 +1994,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1911
1994
|
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
|
|
1912
1995
|
self.horizontalLayout_36 = QHBoxLayout()
|
|
1913
1996
|
self.horizontalLayout_36.setObjectName("horizontalLayout_36")
|
|
1914
|
-
self.label_4 = QLabel(self.
|
|
1997
|
+
self.label_4 = QLabel(self.brain_state_page)
|
|
1915
1998
|
self.label_4.setObjectName("label_4")
|
|
1916
1999
|
sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
|
|
1917
2000
|
self.label_4.setSizePolicy(sizePolicy)
|
|
@@ -1930,7 +2013,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1930
2013
|
|
|
1931
2014
|
self.horizontalLayout_50.addItem(self.horizontalSpacer_44)
|
|
1932
2015
|
|
|
1933
|
-
self.enable_state_9 = QCheckBox(self.
|
|
2016
|
+
self.enable_state_9 = QCheckBox(self.brain_state_page)
|
|
1934
2017
|
self.enable_state_9.setObjectName("enable_state_9")
|
|
1935
2018
|
sizePolicy1.setHeightForWidth(
|
|
1936
2019
|
self.enable_state_9.sizePolicy().hasHeightForWidth()
|
|
@@ -1947,7 +2030,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1947
2030
|
|
|
1948
2031
|
self.horizontalLayout_7.addLayout(self.horizontalLayout_50)
|
|
1949
2032
|
|
|
1950
|
-
self.state_name_9 = QLineEdit(self.
|
|
2033
|
+
self.state_name_9 = QLineEdit(self.brain_state_page)
|
|
1951
2034
|
self.state_name_9.setObjectName("state_name_9")
|
|
1952
2035
|
sizePolicy3.setHeightForWidth(
|
|
1953
2036
|
self.state_name_9.sizePolicy().hasHeightForWidth()
|
|
@@ -1964,7 +2047,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1964
2047
|
|
|
1965
2048
|
self.horizontalLayout_57.addItem(self.horizontalSpacer_46)
|
|
1966
2049
|
|
|
1967
|
-
self.state_scored_9 = QCheckBox(self.
|
|
2050
|
+
self.state_scored_9 = QCheckBox(self.brain_state_page)
|
|
1968
2051
|
self.state_scored_9.setObjectName("state_scored_9")
|
|
1969
2052
|
sizePolicy1.setHeightForWidth(
|
|
1970
2053
|
self.state_scored_9.sizePolicy().hasHeightForWidth()
|
|
@@ -1990,7 +2073,7 @@ class Ui_PrimaryWindow(object):
|
|
|
1990
2073
|
|
|
1991
2074
|
self.horizontalLayout_43.addItem(self.horizontalSpacer_67)
|
|
1992
2075
|
|
|
1993
|
-
self.state_frequency_9 = QDoubleSpinBox(self.
|
|
2076
|
+
self.state_frequency_9 = QDoubleSpinBox(self.brain_state_page)
|
|
1994
2077
|
self.state_frequency_9.setObjectName("state_frequency_9")
|
|
1995
2078
|
self.state_frequency_9.setMaximum(1.000000000000000)
|
|
1996
2079
|
self.state_frequency_9.setSingleStep(0.010000000000000)
|
|
@@ -2018,7 +2101,7 @@ class Ui_PrimaryWindow(object):
|
|
|
2018
2101
|
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
|
|
2019
2102
|
self.horizontalLayout_37 = QHBoxLayout()
|
|
2020
2103
|
self.horizontalLayout_37.setObjectName("horizontalLayout_37")
|
|
2021
|
-
self.label_3 = QLabel(self.
|
|
2104
|
+
self.label_3 = QLabel(self.brain_state_page)
|
|
2022
2105
|
self.label_3.setObjectName("label_3")
|
|
2023
2106
|
sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
|
|
2024
2107
|
self.label_3.setSizePolicy(sizePolicy)
|
|
@@ -2037,7 +2120,7 @@ class Ui_PrimaryWindow(object):
|
|
|
2037
2120
|
|
|
2038
2121
|
self.horizontalLayout_51.addItem(self.horizontalSpacer_48)
|
|
2039
2122
|
|
|
2040
|
-
self.enable_state_0 = QCheckBox(self.
|
|
2123
|
+
self.enable_state_0 = QCheckBox(self.brain_state_page)
|
|
2041
2124
|
self.enable_state_0.setObjectName("enable_state_0")
|
|
2042
2125
|
sizePolicy1.setHeightForWidth(
|
|
2043
2126
|
self.enable_state_0.sizePolicy().hasHeightForWidth()
|
|
@@ -2054,7 +2137,7 @@ class Ui_PrimaryWindow(object):
|
|
|
2054
2137
|
|
|
2055
2138
|
self.horizontalLayout_4.addLayout(self.horizontalLayout_51)
|
|
2056
2139
|
|
|
2057
|
-
self.state_name_0 = QLineEdit(self.
|
|
2140
|
+
self.state_name_0 = QLineEdit(self.brain_state_page)
|
|
2058
2141
|
self.state_name_0.setObjectName("state_name_0")
|
|
2059
2142
|
sizePolicy3.setHeightForWidth(
|
|
2060
2143
|
self.state_name_0.sizePolicy().hasHeightForWidth()
|
|
@@ -2071,7 +2154,7 @@ class Ui_PrimaryWindow(object):
|
|
|
2071
2154
|
|
|
2072
2155
|
self.horizontalLayout_58.addItem(self.horizontalSpacer_49)
|
|
2073
2156
|
|
|
2074
|
-
self.state_scored_0 = QCheckBox(self.
|
|
2157
|
+
self.state_scored_0 = QCheckBox(self.brain_state_page)
|
|
2075
2158
|
self.state_scored_0.setObjectName("state_scored_0")
|
|
2076
2159
|
sizePolicy1.setHeightForWidth(
|
|
2077
2160
|
self.state_scored_0.sizePolicy().hasHeightForWidth()
|
|
@@ -2097,7 +2180,7 @@ class Ui_PrimaryWindow(object):
|
|
|
2097
2180
|
|
|
2098
2181
|
self.horizontalLayout_44.addItem(self.horizontalSpacer_69)
|
|
2099
2182
|
|
|
2100
|
-
self.state_frequency_0 = QDoubleSpinBox(self.
|
|
2183
|
+
self.state_frequency_0 = QDoubleSpinBox(self.brain_state_page)
|
|
2101
2184
|
self.state_frequency_0.setObjectName("state_frequency_0")
|
|
2102
2185
|
self.state_frequency_0.setMaximum(1.000000000000000)
|
|
2103
2186
|
self.state_frequency_0.setSingleStep(0.010000000000000)
|
|
@@ -2120,24 +2203,55 @@ class Ui_PrimaryWindow(object):
|
|
|
2120
2203
|
|
|
2121
2204
|
self.settings_controls_layout.addLayout(self.horizontalLayout_4)
|
|
2122
2205
|
|
|
2123
|
-
self.
|
|
2124
|
-
|
|
2125
|
-
self.horizontalSpacer_71 = QSpacerItem(
|
|
2126
|
-
10, 10, QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Minimum
|
|
2206
|
+
self.verticalSpacer_3 = QSpacerItem(
|
|
2207
|
+
5, 5, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding
|
|
2127
2208
|
)
|
|
2128
2209
|
|
|
2129
|
-
self.
|
|
2210
|
+
self.settings_controls_layout.addItem(self.verticalSpacer_3)
|
|
2211
|
+
|
|
2212
|
+
self.horizontalLayout_80.addLayout(self.settings_controls_layout)
|
|
2130
2213
|
|
|
2214
|
+
self.settings_description_layout = QVBoxLayout()
|
|
2215
|
+
self.settings_description_layout.setObjectName("settings_description_layout")
|
|
2216
|
+
self.settings_text = QLabel(self.brain_state_page)
|
|
2217
|
+
self.settings_text.setObjectName("settings_text")
|
|
2218
|
+
self.settings_text.setStyleSheet("background-color: white;")
|
|
2219
|
+
self.settings_text.setTextFormat(Qt.TextFormat.MarkdownText)
|
|
2220
|
+
self.settings_text.setAlignment(
|
|
2221
|
+
Qt.AlignmentFlag.AlignLeading
|
|
2222
|
+
| Qt.AlignmentFlag.AlignLeft
|
|
2223
|
+
| Qt.AlignmentFlag.AlignTop
|
|
2224
|
+
)
|
|
2225
|
+
self.settings_text.setWordWrap(True)
|
|
2226
|
+
self.settings_text.setMargin(12)
|
|
2227
|
+
|
|
2228
|
+
self.settings_description_layout.addWidget(self.settings_text)
|
|
2229
|
+
|
|
2230
|
+
self.horizontalLayout_80.addLayout(self.settings_description_layout)
|
|
2231
|
+
|
|
2232
|
+
self.horizontalLayout_80.setStretch(0, 1)
|
|
2233
|
+
self.horizontalLayout_80.setStretch(1, 1)
|
|
2234
|
+
self.settings_stack.addWidget(self.brain_state_page)
|
|
2235
|
+
self.ui_default_page = QWidget()
|
|
2236
|
+
self.ui_default_page.setObjectName("ui_default_page")
|
|
2237
|
+
self.horizontalLayout_81 = QHBoxLayout(self.ui_default_page)
|
|
2238
|
+
self.horizontalLayout_81.setSpacing(20)
|
|
2239
|
+
self.horizontalLayout_81.setObjectName("horizontalLayout_81")
|
|
2240
|
+
self.verticalLayout_6 = QVBoxLayout()
|
|
2241
|
+
self.verticalLayout_6.setSpacing(10)
|
|
2242
|
+
self.verticalLayout_6.setObjectName("verticalLayout_6")
|
|
2243
|
+
self.default_epoch_layout = QHBoxLayout()
|
|
2244
|
+
self.default_epoch_layout.setObjectName("default_epoch_layout")
|
|
2131
2245
|
self.horizontalLayout_60 = QHBoxLayout()
|
|
2132
2246
|
self.horizontalLayout_60.setObjectName("horizontalLayout_60")
|
|
2133
|
-
self.label_17 = QLabel(self.
|
|
2247
|
+
self.label_17 = QLabel(self.ui_default_page)
|
|
2134
2248
|
self.label_17.setObjectName("label_17")
|
|
2135
2249
|
sizePolicy1.setHeightForWidth(self.label_17.sizePolicy().hasHeightForWidth())
|
|
2136
2250
|
self.label_17.setSizePolicy(sizePolicy1)
|
|
2137
2251
|
|
|
2138
2252
|
self.horizontalLayout_60.addWidget(self.label_17)
|
|
2139
2253
|
|
|
2140
|
-
self.default_epoch_input = QDoubleSpinBox(self.
|
|
2254
|
+
self.default_epoch_input = QDoubleSpinBox(self.ui_default_page)
|
|
2141
2255
|
self.default_epoch_input.setObjectName("default_epoch_input")
|
|
2142
2256
|
sizePolicy1.setHeightForWidth(
|
|
2143
2257
|
self.default_epoch_input.sizePolicy().hasHeightForWidth()
|
|
@@ -2151,26 +2265,39 @@ class Ui_PrimaryWindow(object):
|
|
|
2151
2265
|
self.default_epoch_layout.addLayout(self.horizontalLayout_60)
|
|
2152
2266
|
|
|
2153
2267
|
self.horizontalSpacer_70 = QSpacerItem(
|
|
2154
|
-
10, 10, QSizePolicy.Policy.
|
|
2268
|
+
10, 10, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum
|
|
2155
2269
|
)
|
|
2156
2270
|
|
|
2157
2271
|
self.default_epoch_layout.addItem(self.horizontalSpacer_70)
|
|
2158
2272
|
|
|
2159
|
-
self.
|
|
2273
|
+
self.verticalLayout_6.addLayout(self.default_epoch_layout)
|
|
2274
|
+
|
|
2275
|
+
self.horizontalLayout_75 = QHBoxLayout()
|
|
2276
|
+
self.horizontalLayout_75.setObjectName("horizontalLayout_75")
|
|
2277
|
+
self.horizontalLayout_76 = QHBoxLayout()
|
|
2278
|
+
self.horizontalLayout_76.setObjectName("horizontalLayout_76")
|
|
2279
|
+
self.overwrite_default_checkbox = QCheckBox(self.ui_default_page)
|
|
2280
|
+
self.overwrite_default_checkbox.setObjectName("overwrite_default_checkbox")
|
|
2281
|
+
|
|
2282
|
+
self.horizontalLayout_76.addWidget(self.overwrite_default_checkbox)
|
|
2283
|
+
|
|
2284
|
+
self.horizontalLayout_75.addLayout(self.horizontalLayout_76)
|
|
2285
|
+
|
|
2286
|
+
self.horizontalSpacer_88 = QSpacerItem(
|
|
2287
|
+
40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum
|
|
2288
|
+
)
|
|
2289
|
+
|
|
2290
|
+
self.horizontalLayout_75.addItem(self.horizontalSpacer_88)
|
|
2291
|
+
|
|
2292
|
+
self.verticalLayout_6.addLayout(self.horizontalLayout_75)
|
|
2160
2293
|
|
|
2161
2294
|
self.confidence_score_setting_layout = QHBoxLayout()
|
|
2162
2295
|
self.confidence_score_setting_layout.setObjectName(
|
|
2163
2296
|
"confidence_score_setting_layout"
|
|
2164
2297
|
)
|
|
2165
|
-
self.horizontalSpacer_73 = QSpacerItem(
|
|
2166
|
-
10, 10, QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Minimum
|
|
2167
|
-
)
|
|
2168
|
-
|
|
2169
|
-
self.confidence_score_setting_layout.addItem(self.horizontalSpacer_73)
|
|
2170
|
-
|
|
2171
2298
|
self.horizontalLayout_62 = QHBoxLayout()
|
|
2172
2299
|
self.horizontalLayout_62.setObjectName("horizontalLayout_62")
|
|
2173
|
-
self.confidence_setting_checkbox = QCheckBox(self.
|
|
2300
|
+
self.confidence_setting_checkbox = QCheckBox(self.ui_default_page)
|
|
2174
2301
|
self.confidence_setting_checkbox.setObjectName("confidence_setting_checkbox")
|
|
2175
2302
|
sizePolicy1.setHeightForWidth(
|
|
2176
2303
|
self.confidence_setting_checkbox.sizePolicy().hasHeightForWidth()
|
|
@@ -2183,71 +2310,451 @@ class Ui_PrimaryWindow(object):
|
|
|
2183
2310
|
self.confidence_score_setting_layout.addLayout(self.horizontalLayout_62)
|
|
2184
2311
|
|
|
2185
2312
|
self.horizontalSpacer_72 = QSpacerItem(
|
|
2186
|
-
10, 10, QSizePolicy.Policy.
|
|
2313
|
+
10, 10, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum
|
|
2187
2314
|
)
|
|
2188
2315
|
|
|
2189
2316
|
self.confidence_score_setting_layout.addItem(self.horizontalSpacer_72)
|
|
2190
2317
|
|
|
2191
|
-
self.
|
|
2318
|
+
self.verticalLayout_6.addLayout(self.confidence_score_setting_layout)
|
|
2192
2319
|
|
|
2320
|
+
self.horizontalLayout_2 = QHBoxLayout()
|
|
2321
|
+
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
|
2193
2322
|
self.horizontalLayout_18 = QHBoxLayout()
|
|
2194
|
-
self.horizontalLayout_18.setSpacing(10)
|
|
2195
2323
|
self.horizontalLayout_18.setObjectName("horizontalLayout_18")
|
|
2324
|
+
self.label_19 = QLabel(self.ui_default_page)
|
|
2325
|
+
self.label_19.setObjectName("label_19")
|
|
2326
|
+
sizePolicy1.setHeightForWidth(self.label_19.sizePolicy().hasHeightForWidth())
|
|
2327
|
+
self.label_19.setSizePolicy(sizePolicy1)
|
|
2328
|
+
|
|
2329
|
+
self.horizontalLayout_18.addWidget(self.label_19)
|
|
2330
|
+
|
|
2331
|
+
self.default_min_bout_length_spinbox = QDoubleSpinBox(self.ui_default_page)
|
|
2332
|
+
self.default_min_bout_length_spinbox.setObjectName(
|
|
2333
|
+
"default_min_bout_length_spinbox"
|
|
2334
|
+
)
|
|
2335
|
+
sizePolicy1.setHeightForWidth(
|
|
2336
|
+
self.default_min_bout_length_spinbox.sizePolicy().hasHeightForWidth()
|
|
2337
|
+
)
|
|
2338
|
+
self.default_min_bout_length_spinbox.setSizePolicy(sizePolicy1)
|
|
2339
|
+
self.default_min_bout_length_spinbox.setMaximum(1000.000000000000000)
|
|
2340
|
+
self.default_min_bout_length_spinbox.setValue(5.000000000000000)
|
|
2341
|
+
|
|
2342
|
+
self.horizontalLayout_18.addWidget(self.default_min_bout_length_spinbox)
|
|
2343
|
+
|
|
2344
|
+
self.horizontalLayout_2.addLayout(self.horizontalLayout_18)
|
|
2345
|
+
|
|
2346
|
+
self.horizontalSpacer_90 = QSpacerItem(
|
|
2347
|
+
5, 5, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum
|
|
2348
|
+
)
|
|
2349
|
+
|
|
2350
|
+
self.horizontalLayout_2.addItem(self.horizontalSpacer_90)
|
|
2351
|
+
|
|
2352
|
+
self.verticalLayout_6.addLayout(self.horizontalLayout_2)
|
|
2353
|
+
|
|
2354
|
+
self.verticalSpacer_5 = QSpacerItem(
|
|
2355
|
+
5, 5, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding
|
|
2356
|
+
)
|
|
2357
|
+
|
|
2358
|
+
self.verticalLayout_6.addItem(self.verticalSpacer_5)
|
|
2359
|
+
|
|
2360
|
+
self.horizontalLayout_81.addLayout(self.verticalLayout_6)
|
|
2361
|
+
|
|
2362
|
+
self.ui_default_description_layout = QVBoxLayout()
|
|
2363
|
+
self.ui_default_description_layout.setObjectName(
|
|
2364
|
+
"ui_default_description_layout"
|
|
2365
|
+
)
|
|
2366
|
+
self.ui_default_description_label = QLabel(self.ui_default_page)
|
|
2367
|
+
self.ui_default_description_label.setObjectName("ui_default_description_label")
|
|
2368
|
+
self.ui_default_description_label.setStyleSheet("background-color: white;")
|
|
2369
|
+
self.ui_default_description_label.setTextFormat(Qt.TextFormat.MarkdownText)
|
|
2370
|
+
self.ui_default_description_label.setAlignment(
|
|
2371
|
+
Qt.AlignmentFlag.AlignLeading
|
|
2372
|
+
| Qt.AlignmentFlag.AlignLeft
|
|
2373
|
+
| Qt.AlignmentFlag.AlignTop
|
|
2374
|
+
)
|
|
2375
|
+
self.ui_default_description_label.setWordWrap(True)
|
|
2376
|
+
self.ui_default_description_label.setMargin(12)
|
|
2377
|
+
|
|
2378
|
+
self.ui_default_description_layout.addWidget(self.ui_default_description_label)
|
|
2379
|
+
|
|
2380
|
+
self.horizontalLayout_81.addLayout(self.ui_default_description_layout)
|
|
2381
|
+
|
|
2382
|
+
self.horizontalLayout_81.setStretch(0, 1)
|
|
2383
|
+
self.horizontalLayout_81.setStretch(1, 1)
|
|
2384
|
+
self.settings_stack.addWidget(self.ui_default_page)
|
|
2385
|
+
self.emg_filter_page = QWidget()
|
|
2386
|
+
self.emg_filter_page.setObjectName("emg_filter_page")
|
|
2387
|
+
self.horizontalLayout_82 = QHBoxLayout(self.emg_filter_page)
|
|
2388
|
+
self.horizontalLayout_82.setSpacing(20)
|
|
2389
|
+
self.horizontalLayout_82.setObjectName("horizontalLayout_82")
|
|
2390
|
+
self.verticalLayout_13 = QVBoxLayout()
|
|
2391
|
+
self.verticalLayout_13.setSpacing(10)
|
|
2392
|
+
self.verticalLayout_13.setObjectName("verticalLayout_13")
|
|
2393
|
+
self.filter_order_layout = QHBoxLayout()
|
|
2394
|
+
self.filter_order_layout.setObjectName("filter_order_layout")
|
|
2395
|
+
self.horizontalLayout_63 = QHBoxLayout()
|
|
2396
|
+
self.horizontalLayout_63.setObjectName("horizontalLayout_63")
|
|
2397
|
+
self.filter_order_label = QLabel(self.emg_filter_page)
|
|
2398
|
+
self.filter_order_label.setObjectName("filter_order_label")
|
|
2399
|
+
sizePolicy1.setHeightForWidth(
|
|
2400
|
+
self.filter_order_label.sizePolicy().hasHeightForWidth()
|
|
2401
|
+
)
|
|
2402
|
+
self.filter_order_label.setSizePolicy(sizePolicy1)
|
|
2403
|
+
|
|
2404
|
+
self.horizontalLayout_63.addWidget(self.filter_order_label)
|
|
2405
|
+
|
|
2406
|
+
self.emg_order_spinbox = QSpinBox(self.emg_filter_page)
|
|
2407
|
+
self.emg_order_spinbox.setObjectName("emg_order_spinbox")
|
|
2408
|
+
sizePolicy1.setHeightForWidth(
|
|
2409
|
+
self.emg_order_spinbox.sizePolicy().hasHeightForWidth()
|
|
2410
|
+
)
|
|
2411
|
+
self.emg_order_spinbox.setSizePolicy(sizePolicy1)
|
|
2412
|
+
self.emg_order_spinbox.setMinimum(1)
|
|
2413
|
+
self.emg_order_spinbox.setMaximum(10)
|
|
2414
|
+
self.emg_order_spinbox.setValue(8)
|
|
2415
|
+
|
|
2416
|
+
self.horizontalLayout_63.addWidget(self.emg_order_spinbox)
|
|
2417
|
+
|
|
2418
|
+
self.filter_order_layout.addLayout(self.horizontalLayout_63)
|
|
2419
|
+
|
|
2196
2420
|
self.horizontalSpacer_9 = QSpacerItem(
|
|
2197
|
-
10,
|
|
2421
|
+
10, 10, QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Minimum
|
|
2198
2422
|
)
|
|
2199
2423
|
|
|
2200
|
-
self.
|
|
2424
|
+
self.filter_order_layout.addItem(self.horizontalSpacer_9)
|
|
2201
2425
|
|
|
2202
|
-
self.
|
|
2203
|
-
self.
|
|
2426
|
+
self.filter_order_layout.setStretch(0, 1)
|
|
2427
|
+
self.filter_order_layout.setStretch(1, 3)
|
|
2428
|
+
|
|
2429
|
+
self.verticalLayout_13.addLayout(self.filter_order_layout)
|
|
2430
|
+
|
|
2431
|
+
self.bp_lower_layout = QHBoxLayout()
|
|
2432
|
+
self.bp_lower_layout.setObjectName("bp_lower_layout")
|
|
2433
|
+
self.horizontalLayout_65 = QHBoxLayout()
|
|
2434
|
+
self.horizontalLayout_65.setObjectName("horizontalLayout_65")
|
|
2435
|
+
self.bp_lower_label = QLabel(self.emg_filter_page)
|
|
2436
|
+
self.bp_lower_label.setObjectName("bp_lower_label")
|
|
2204
2437
|
sizePolicy1.setHeightForWidth(
|
|
2205
|
-
self.
|
|
2438
|
+
self.bp_lower_label.sizePolicy().hasHeightForWidth()
|
|
2206
2439
|
)
|
|
2207
|
-
self.
|
|
2440
|
+
self.bp_lower_label.setSizePolicy(sizePolicy1)
|
|
2208
2441
|
|
|
2209
|
-
self.
|
|
2442
|
+
self.horizontalLayout_65.addWidget(self.bp_lower_label)
|
|
2210
2443
|
|
|
2211
|
-
self.
|
|
2212
|
-
self.
|
|
2213
|
-
|
|
2214
|
-
|
|
2444
|
+
self.bp_lower_spinbox = QDoubleSpinBox(self.emg_filter_page)
|
|
2445
|
+
self.bp_lower_spinbox.setObjectName("bp_lower_spinbox")
|
|
2446
|
+
self.bp_lower_spinbox.setMaximum(999.990000000000009)
|
|
2447
|
+
self.bp_lower_spinbox.setValue(20.000000000000000)
|
|
2448
|
+
|
|
2449
|
+
self.horizontalLayout_65.addWidget(self.bp_lower_spinbox)
|
|
2450
|
+
|
|
2451
|
+
self.bp_lower_layout.addLayout(self.horizontalLayout_65)
|
|
2452
|
+
|
|
2453
|
+
self.horizontalSpacer_73 = QSpacerItem(
|
|
2454
|
+
10, 10, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum
|
|
2215
2455
|
)
|
|
2216
|
-
self.save_config_status.setSizePolicy(sizePolicy3)
|
|
2217
|
-
self.save_config_status.setStyleSheet("background-color: transparent;")
|
|
2218
2456
|
|
|
2219
|
-
self.
|
|
2457
|
+
self.bp_lower_layout.addItem(self.horizontalSpacer_73)
|
|
2220
2458
|
|
|
2221
|
-
self.
|
|
2222
|
-
self.horizontalLayout_18.setStretch(1, 1)
|
|
2223
|
-
self.horizontalLayout_18.setStretch(2, 7)
|
|
2459
|
+
self.verticalLayout_13.addLayout(self.bp_lower_layout)
|
|
2224
2460
|
|
|
2225
|
-
self.
|
|
2461
|
+
self.bp_upper_layout = QHBoxLayout()
|
|
2462
|
+
self.bp_upper_layout.setObjectName("bp_upper_layout")
|
|
2463
|
+
self.horizontalLayout_61 = QHBoxLayout()
|
|
2464
|
+
self.horizontalLayout_61.setObjectName("horizontalLayout_61")
|
|
2465
|
+
self.bp_upper_label = QLabel(self.emg_filter_page)
|
|
2466
|
+
self.bp_upper_label.setObjectName("bp_upper_label")
|
|
2467
|
+
sizePolicy1.setHeightForWidth(
|
|
2468
|
+
self.bp_upper_label.sizePolicy().hasHeightForWidth()
|
|
2469
|
+
)
|
|
2470
|
+
self.bp_upper_label.setSizePolicy(sizePolicy1)
|
|
2471
|
+
|
|
2472
|
+
self.horizontalLayout_61.addWidget(self.bp_upper_label)
|
|
2226
2473
|
|
|
2227
|
-
self.
|
|
2228
|
-
self.
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
self.
|
|
2233
|
-
self.
|
|
2234
|
-
self.
|
|
2235
|
-
|
|
2236
|
-
self.
|
|
2237
|
-
|
|
2238
|
-
self.
|
|
2239
|
-
|
|
2474
|
+
self.bp_upper_spinbox = QDoubleSpinBox(self.emg_filter_page)
|
|
2475
|
+
self.bp_upper_spinbox.setObjectName("bp_upper_spinbox")
|
|
2476
|
+
sizePolicy1.setHeightForWidth(
|
|
2477
|
+
self.bp_upper_spinbox.sizePolicy().hasHeightForWidth()
|
|
2478
|
+
)
|
|
2479
|
+
self.bp_upper_spinbox.setSizePolicy(sizePolicy1)
|
|
2480
|
+
self.bp_upper_spinbox.setMaximum(999.990000000000009)
|
|
2481
|
+
self.bp_upper_spinbox.setValue(50.000000000000000)
|
|
2482
|
+
|
|
2483
|
+
self.horizontalLayout_61.addWidget(self.bp_upper_spinbox)
|
|
2484
|
+
|
|
2485
|
+
self.bp_upper_layout.addLayout(self.horizontalLayout_61)
|
|
2486
|
+
|
|
2487
|
+
self.horizontalSpacer_71 = QSpacerItem(
|
|
2488
|
+
10, 10, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum
|
|
2489
|
+
)
|
|
2490
|
+
|
|
2491
|
+
self.bp_upper_layout.addItem(self.horizontalSpacer_71)
|
|
2492
|
+
|
|
2493
|
+
self.verticalLayout_13.addLayout(self.bp_upper_layout)
|
|
2494
|
+
|
|
2495
|
+
self.horizontalLayout_73 = QHBoxLayout()
|
|
2496
|
+
self.horizontalLayout_73.setObjectName("horizontalLayout_73")
|
|
2497
|
+
self.horizontalSpacer_85 = QSpacerItem(
|
|
2498
|
+
5, 5, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum
|
|
2499
|
+
)
|
|
2500
|
+
|
|
2501
|
+
self.horizontalLayout_73.addItem(self.horizontalSpacer_85)
|
|
2502
|
+
|
|
2503
|
+
self.reset_emg_params_button = QPushButton(self.emg_filter_page)
|
|
2504
|
+
self.reset_emg_params_button.setObjectName("reset_emg_params_button")
|
|
2505
|
+
sizePolicy1.setHeightForWidth(
|
|
2506
|
+
self.reset_emg_params_button.sizePolicy().hasHeightForWidth()
|
|
2507
|
+
)
|
|
2508
|
+
self.reset_emg_params_button.setSizePolicy(sizePolicy1)
|
|
2509
|
+
|
|
2510
|
+
self.horizontalLayout_73.addWidget(self.reset_emg_params_button)
|
|
2511
|
+
|
|
2512
|
+
self.horizontalSpacer_84 = QSpacerItem(
|
|
2513
|
+
5, 5, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum
|
|
2514
|
+
)
|
|
2240
2515
|
|
|
2241
|
-
self.
|
|
2516
|
+
self.horizontalLayout_73.addItem(self.horizontalSpacer_84)
|
|
2517
|
+
|
|
2518
|
+
self.verticalLayout_13.addLayout(self.horizontalLayout_73)
|
|
2519
|
+
|
|
2520
|
+
self.verticalSpacer_6 = QSpacerItem(
|
|
2521
|
+
5, 5, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding
|
|
2522
|
+
)
|
|
2523
|
+
|
|
2524
|
+
self.verticalLayout_13.addItem(self.verticalSpacer_6)
|
|
2525
|
+
|
|
2526
|
+
self.horizontalLayout_82.addLayout(self.verticalLayout_13)
|
|
2527
|
+
|
|
2528
|
+
self.verticalLayout_12 = QVBoxLayout()
|
|
2529
|
+
self.verticalLayout_12.setObjectName("verticalLayout_12")
|
|
2530
|
+
self.emg_filter_description_label = QLabel(self.emg_filter_page)
|
|
2531
|
+
self.emg_filter_description_label.setObjectName("emg_filter_description_label")
|
|
2532
|
+
self.emg_filter_description_label.setStyleSheet("background-color: white;")
|
|
2533
|
+
self.emg_filter_description_label.setAlignment(
|
|
2534
|
+
Qt.AlignmentFlag.AlignLeading
|
|
2535
|
+
| Qt.AlignmentFlag.AlignLeft
|
|
2536
|
+
| Qt.AlignmentFlag.AlignTop
|
|
2537
|
+
)
|
|
2538
|
+
self.emg_filter_description_label.setWordWrap(True)
|
|
2539
|
+
self.emg_filter_description_label.setMargin(12)
|
|
2540
|
+
|
|
2541
|
+
self.verticalLayout_12.addWidget(self.emg_filter_description_label)
|
|
2542
|
+
|
|
2543
|
+
self.horizontalLayout_82.addLayout(self.verticalLayout_12)
|
|
2544
|
+
|
|
2545
|
+
self.horizontalLayout_82.setStretch(0, 1)
|
|
2546
|
+
self.horizontalLayout_82.setStretch(1, 1)
|
|
2547
|
+
self.settings_stack.addWidget(self.emg_filter_page)
|
|
2548
|
+
self.hyperparameter_page = QWidget()
|
|
2549
|
+
self.hyperparameter_page.setObjectName("hyperparameter_page")
|
|
2550
|
+
self.horizontalLayout_83 = QHBoxLayout(self.hyperparameter_page)
|
|
2551
|
+
self.horizontalLayout_83.setSpacing(20)
|
|
2552
|
+
self.horizontalLayout_83.setObjectName("horizontalLayout_83")
|
|
2553
|
+
self.verticalLayout_14 = QVBoxLayout()
|
|
2554
|
+
self.verticalLayout_14.setSpacing(10)
|
|
2555
|
+
self.verticalLayout_14.setObjectName("verticalLayout_14")
|
|
2556
|
+
self.horizontalLayout_64 = QHBoxLayout()
|
|
2557
|
+
self.horizontalLayout_64.setObjectName("horizontalLayout_64")
|
|
2558
|
+
self.horizontalLayout_66 = QHBoxLayout()
|
|
2559
|
+
self.horizontalLayout_66.setObjectName("horizontalLayout_66")
|
|
2560
|
+
self.batch_size_label = QLabel(self.hyperparameter_page)
|
|
2561
|
+
self.batch_size_label.setObjectName("batch_size_label")
|
|
2562
|
+
sizePolicy1.setHeightForWidth(
|
|
2563
|
+
self.batch_size_label.sizePolicy().hasHeightForWidth()
|
|
2564
|
+
)
|
|
2565
|
+
self.batch_size_label.setSizePolicy(sizePolicy1)
|
|
2566
|
+
|
|
2567
|
+
self.horizontalLayout_66.addWidget(self.batch_size_label)
|
|
2568
|
+
|
|
2569
|
+
self.batch_size_spinbox = QSpinBox(self.hyperparameter_page)
|
|
2570
|
+
self.batch_size_spinbox.setObjectName("batch_size_spinbox")
|
|
2571
|
+
sizePolicy1.setHeightForWidth(
|
|
2572
|
+
self.batch_size_spinbox.sizePolicy().hasHeightForWidth()
|
|
2573
|
+
)
|
|
2574
|
+
self.batch_size_spinbox.setSizePolicy(sizePolicy1)
|
|
2575
|
+
self.batch_size_spinbox.setMinimum(1)
|
|
2576
|
+
self.batch_size_spinbox.setMaximum(9999)
|
|
2577
|
+
self.batch_size_spinbox.setValue(64)
|
|
2578
|
+
|
|
2579
|
+
self.horizontalLayout_66.addWidget(self.batch_size_spinbox)
|
|
2580
|
+
|
|
2581
|
+
self.horizontalLayout_64.addLayout(self.horizontalLayout_66)
|
|
2582
|
+
|
|
2583
|
+
self.horizontalSpacer_80 = QSpacerItem(
|
|
2584
|
+
5, 5, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum
|
|
2585
|
+
)
|
|
2586
|
+
|
|
2587
|
+
self.horizontalLayout_64.addItem(self.horizontalSpacer_80)
|
|
2588
|
+
|
|
2589
|
+
self.verticalLayout_14.addLayout(self.horizontalLayout_64)
|
|
2590
|
+
|
|
2591
|
+
self.horizontalLayout_67 = QHBoxLayout()
|
|
2592
|
+
self.horizontalLayout_67.setObjectName("horizontalLayout_67")
|
|
2593
|
+
self.horizontalLayout_68 = QHBoxLayout()
|
|
2594
|
+
self.horizontalLayout_68.setObjectName("horizontalLayout_68")
|
|
2595
|
+
self.learning_rate_label = QLabel(self.hyperparameter_page)
|
|
2596
|
+
self.learning_rate_label.setObjectName("learning_rate_label")
|
|
2597
|
+
sizePolicy1.setHeightForWidth(
|
|
2598
|
+
self.learning_rate_label.sizePolicy().hasHeightForWidth()
|
|
2599
|
+
)
|
|
2600
|
+
self.learning_rate_label.setSizePolicy(sizePolicy1)
|
|
2601
|
+
|
|
2602
|
+
self.horizontalLayout_68.addWidget(self.learning_rate_label)
|
|
2603
|
+
|
|
2604
|
+
self.learning_rate_spinbox = QDoubleSpinBox(self.hyperparameter_page)
|
|
2605
|
+
self.learning_rate_spinbox.setObjectName("learning_rate_spinbox")
|
|
2606
|
+
sizePolicy1.setHeightForWidth(
|
|
2607
|
+
self.learning_rate_spinbox.sizePolicy().hasHeightForWidth()
|
|
2608
|
+
)
|
|
2609
|
+
self.learning_rate_spinbox.setSizePolicy(sizePolicy1)
|
|
2610
|
+
self.learning_rate_spinbox.setDecimals(5)
|
|
2611
|
+
self.learning_rate_spinbox.setMinimum(0.000010000000000)
|
|
2612
|
+
self.learning_rate_spinbox.setSingleStep(0.000100000000000)
|
|
2613
|
+
self.learning_rate_spinbox.setValue(0.001000000000000)
|
|
2614
|
+
|
|
2615
|
+
self.horizontalLayout_68.addWidget(self.learning_rate_spinbox)
|
|
2616
|
+
|
|
2617
|
+
self.horizontalLayout_67.addLayout(self.horizontalLayout_68)
|
|
2618
|
+
|
|
2619
|
+
self.horizontalSpacer_81 = QSpacerItem(
|
|
2620
|
+
5, 5, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum
|
|
2621
|
+
)
|
|
2622
|
+
|
|
2623
|
+
self.horizontalLayout_67.addItem(self.horizontalSpacer_81)
|
|
2624
|
+
|
|
2625
|
+
self.verticalLayout_14.addLayout(self.horizontalLayout_67)
|
|
2626
|
+
|
|
2627
|
+
self.horizontalLayout_69 = QHBoxLayout()
|
|
2628
|
+
self.horizontalLayout_69.setObjectName("horizontalLayout_69")
|
|
2629
|
+
self.horizontalLayout_70 = QHBoxLayout()
|
|
2630
|
+
self.horizontalLayout_70.setObjectName("horizontalLayout_70")
|
|
2631
|
+
self.momentum_label = QLabel(self.hyperparameter_page)
|
|
2632
|
+
self.momentum_label.setObjectName("momentum_label")
|
|
2633
|
+
sizePolicy1.setHeightForWidth(
|
|
2634
|
+
self.momentum_label.sizePolicy().hasHeightForWidth()
|
|
2635
|
+
)
|
|
2636
|
+
self.momentum_label.setSizePolicy(sizePolicy1)
|
|
2637
|
+
|
|
2638
|
+
self.horizontalLayout_70.addWidget(self.momentum_label)
|
|
2639
|
+
|
|
2640
|
+
self.momentum_spinbox = QDoubleSpinBox(self.hyperparameter_page)
|
|
2641
|
+
self.momentum_spinbox.setObjectName("momentum_spinbox")
|
|
2642
|
+
sizePolicy1.setHeightForWidth(
|
|
2643
|
+
self.momentum_spinbox.sizePolicy().hasHeightForWidth()
|
|
2644
|
+
)
|
|
2645
|
+
self.momentum_spinbox.setSizePolicy(sizePolicy1)
|
|
2646
|
+
self.momentum_spinbox.setDecimals(3)
|
|
2647
|
+
self.momentum_spinbox.setMinimum(0.010000000000000)
|
|
2648
|
+
self.momentum_spinbox.setMaximum(0.999000000000000)
|
|
2649
|
+
self.momentum_spinbox.setSingleStep(0.010000000000000)
|
|
2650
|
+
self.momentum_spinbox.setValue(0.900000000000000)
|
|
2651
|
+
|
|
2652
|
+
self.horizontalLayout_70.addWidget(self.momentum_spinbox)
|
|
2653
|
+
|
|
2654
|
+
self.horizontalLayout_69.addLayout(self.horizontalLayout_70)
|
|
2655
|
+
|
|
2656
|
+
self.horizontalSpacer_82 = QSpacerItem(
|
|
2657
|
+
5, 5, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum
|
|
2658
|
+
)
|
|
2659
|
+
|
|
2660
|
+
self.horizontalLayout_69.addItem(self.horizontalSpacer_82)
|
|
2661
|
+
|
|
2662
|
+
self.verticalLayout_14.addLayout(self.horizontalLayout_69)
|
|
2663
|
+
|
|
2664
|
+
self.horizontalLayout_71 = QHBoxLayout()
|
|
2665
|
+
self.horizontalLayout_71.setObjectName("horizontalLayout_71")
|
|
2666
|
+
self.horizontalLayout_72 = QHBoxLayout()
|
|
2667
|
+
self.horizontalLayout_72.setObjectName("horizontalLayout_72")
|
|
2668
|
+
self.training_epochs_label = QLabel(self.hyperparameter_page)
|
|
2669
|
+
self.training_epochs_label.setObjectName("training_epochs_label")
|
|
2670
|
+
sizePolicy1.setHeightForWidth(
|
|
2671
|
+
self.training_epochs_label.sizePolicy().hasHeightForWidth()
|
|
2672
|
+
)
|
|
2673
|
+
self.training_epochs_label.setSizePolicy(sizePolicy1)
|
|
2674
|
+
|
|
2675
|
+
self.horizontalLayout_72.addWidget(self.training_epochs_label)
|
|
2676
|
+
|
|
2677
|
+
self.training_epochs_spinbox = QSpinBox(self.hyperparameter_page)
|
|
2678
|
+
self.training_epochs_spinbox.setObjectName("training_epochs_spinbox")
|
|
2679
|
+
sizePolicy1.setHeightForWidth(
|
|
2680
|
+
self.training_epochs_spinbox.sizePolicy().hasHeightForWidth()
|
|
2681
|
+
)
|
|
2682
|
+
self.training_epochs_spinbox.setSizePolicy(sizePolicy1)
|
|
2683
|
+
self.training_epochs_spinbox.setMinimum(1)
|
|
2684
|
+
self.training_epochs_spinbox.setValue(6)
|
|
2685
|
+
|
|
2686
|
+
self.horizontalLayout_72.addWidget(self.training_epochs_spinbox)
|
|
2687
|
+
|
|
2688
|
+
self.horizontalLayout_71.addLayout(self.horizontalLayout_72)
|
|
2689
|
+
|
|
2690
|
+
self.horizontalSpacer_83 = QSpacerItem(
|
|
2691
|
+
40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum
|
|
2692
|
+
)
|
|
2693
|
+
|
|
2694
|
+
self.horizontalLayout_71.addItem(self.horizontalSpacer_83)
|
|
2695
|
+
|
|
2696
|
+
self.verticalLayout_14.addLayout(self.horizontalLayout_71)
|
|
2697
|
+
|
|
2698
|
+
self.horizontalLayout_74 = QHBoxLayout()
|
|
2699
|
+
self.horizontalLayout_74.setObjectName("horizontalLayout_74")
|
|
2700
|
+
self.horizontalSpacer_86 = QSpacerItem(
|
|
2701
|
+
5, 5, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum
|
|
2702
|
+
)
|
|
2703
|
+
|
|
2704
|
+
self.horizontalLayout_74.addItem(self.horizontalSpacer_86)
|
|
2705
|
+
|
|
2706
|
+
self.reset_hyperparams_button = QPushButton(self.hyperparameter_page)
|
|
2707
|
+
self.reset_hyperparams_button.setObjectName("reset_hyperparams_button")
|
|
2708
|
+
sizePolicy1.setHeightForWidth(
|
|
2709
|
+
self.reset_hyperparams_button.sizePolicy().hasHeightForWidth()
|
|
2710
|
+
)
|
|
2711
|
+
self.reset_hyperparams_button.setSizePolicy(sizePolicy1)
|
|
2712
|
+
|
|
2713
|
+
self.horizontalLayout_74.addWidget(self.reset_hyperparams_button)
|
|
2714
|
+
|
|
2715
|
+
self.horizontalSpacer_87 = QSpacerItem(
|
|
2716
|
+
5, 5, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum
|
|
2717
|
+
)
|
|
2718
|
+
|
|
2719
|
+
self.horizontalLayout_74.addItem(self.horizontalSpacer_87)
|
|
2720
|
+
|
|
2721
|
+
self.verticalLayout_14.addLayout(self.horizontalLayout_74)
|
|
2242
2722
|
|
|
2243
2723
|
self.verticalSpacer = QSpacerItem(
|
|
2244
|
-
5,
|
|
2724
|
+
5, 5, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding
|
|
2245
2725
|
)
|
|
2246
2726
|
|
|
2247
|
-
self.
|
|
2727
|
+
self.verticalLayout_14.addItem(self.verticalSpacer)
|
|
2248
2728
|
|
|
2249
|
-
self.
|
|
2250
|
-
|
|
2729
|
+
self.horizontalLayout_83.addLayout(self.verticalLayout_14)
|
|
2730
|
+
|
|
2731
|
+
self.verticalLayout_15 = QVBoxLayout()
|
|
2732
|
+
self.verticalLayout_15.setObjectName("verticalLayout_15")
|
|
2733
|
+
self.hyperparameter_description_label = QLabel(self.hyperparameter_page)
|
|
2734
|
+
self.hyperparameter_description_label.setObjectName(
|
|
2735
|
+
"hyperparameter_description_label"
|
|
2736
|
+
)
|
|
2737
|
+
self.hyperparameter_description_label.setStyleSheet("background-color: white;")
|
|
2738
|
+
self.hyperparameter_description_label.setTextFormat(Qt.TextFormat.MarkdownText)
|
|
2739
|
+
self.hyperparameter_description_label.setAlignment(
|
|
2740
|
+
Qt.AlignmentFlag.AlignLeading
|
|
2741
|
+
| Qt.AlignmentFlag.AlignLeft
|
|
2742
|
+
| Qt.AlignmentFlag.AlignTop
|
|
2743
|
+
)
|
|
2744
|
+
self.hyperparameter_description_label.setWordWrap(True)
|
|
2745
|
+
self.hyperparameter_description_label.setMargin(12)
|
|
2746
|
+
|
|
2747
|
+
self.verticalLayout_15.addWidget(self.hyperparameter_description_label)
|
|
2748
|
+
|
|
2749
|
+
self.horizontalLayout_83.addLayout(self.verticalLayout_15)
|
|
2750
|
+
|
|
2751
|
+
self.horizontalLayout_83.setStretch(0, 1)
|
|
2752
|
+
self.horizontalLayout_83.setStretch(1, 1)
|
|
2753
|
+
self.settings_stack.addWidget(self.hyperparameter_page)
|
|
2754
|
+
|
|
2755
|
+
self.settings_layout.addWidget(self.settings_stack)
|
|
2756
|
+
|
|
2757
|
+
self.settings_tab_layout.addLayout(self.settings_layout, 1, 0, 1, 1)
|
|
2251
2758
|
|
|
2252
2759
|
self.gridLayout_5.addLayout(self.settings_tab_layout, 0, 0, 1, 1)
|
|
2253
2760
|
|
|
@@ -2272,9 +2779,14 @@ class Ui_PrimaryWindow(object):
|
|
|
2272
2779
|
QWidget.setTabOrder(self.recording_list_widget, self.message_area)
|
|
2273
2780
|
|
|
2274
2781
|
self.retranslateUi(PrimaryWindow)
|
|
2782
|
+
self.settings_combobox.currentIndexChanged.connect(
|
|
2783
|
+
self.settings_stack.setCurrentIndex
|
|
2784
|
+
)
|
|
2275
2785
|
|
|
2276
2786
|
self.upper_tab_widget.setCurrentIndex(0)
|
|
2277
2787
|
self.lower_tab_widget.setCurrentIndex(0)
|
|
2788
|
+
self.settings_combobox.setCurrentIndex(0)
|
|
2789
|
+
self.settings_stack.setCurrentIndex(0)
|
|
2278
2790
|
|
|
2279
2791
|
QMetaObject.connectSlotsByName(PrimaryWindow)
|
|
2280
2792
|
|
|
@@ -2285,7 +2797,10 @@ class Ui_PrimaryWindow(object):
|
|
|
2285
2797
|
QCoreApplication.translate("PrimaryWindow", "MainWindow", None)
|
|
2286
2798
|
)
|
|
2287
2799
|
self.epochlengthlabel.setText(
|
|
2288
|
-
QCoreApplication.translate("PrimaryWindow", "Epoch length
|
|
2800
|
+
QCoreApplication.translate("PrimaryWindow", "Epoch length:", None)
|
|
2801
|
+
)
|
|
2802
|
+
self.epoch_length_input.setSuffix(
|
|
2803
|
+
QCoreApplication.translate("PrimaryWindow", " sec", None)
|
|
2289
2804
|
)
|
|
2290
2805
|
self.recordinglistgroupbox.setTitle(
|
|
2291
2806
|
QCoreApplication.translate("PrimaryWindow", "Recording list", None)
|
|
@@ -2340,7 +2855,10 @@ class Ui_PrimaryWindow(object):
|
|
|
2340
2855
|
)
|
|
2341
2856
|
)
|
|
2342
2857
|
self.samplingratelabel.setText(
|
|
2343
|
-
QCoreApplication.translate("PrimaryWindow", "Sampling rate
|
|
2858
|
+
QCoreApplication.translate("PrimaryWindow", "Sampling rate:", None)
|
|
2859
|
+
)
|
|
2860
|
+
self.sampling_rate_input.setSuffix(
|
|
2861
|
+
QCoreApplication.translate("PrimaryWindow", " Hz", None)
|
|
2344
2862
|
)
|
|
2345
2863
|
# if QT_CONFIG(tooltip)
|
|
2346
2864
|
self.recording_file_button.setToolTip(
|
|
@@ -2448,11 +2966,12 @@ class Ui_PrimaryWindow(object):
|
|
|
2448
2966
|
QCoreApplication.translate("PrimaryWindow", "Save confidence scores", None)
|
|
2449
2967
|
)
|
|
2450
2968
|
self.boutlengthlabel.setText(
|
|
2451
|
-
QCoreApplication.translate(
|
|
2452
|
-
"PrimaryWindow", "Minimum bout length (sec):", None
|
|
2453
|
-
)
|
|
2969
|
+
QCoreApplication.translate("PrimaryWindow", "Minimum bout length:", None)
|
|
2454
2970
|
)
|
|
2455
2971
|
self.bout_length_input.setPrefix("")
|
|
2972
|
+
self.bout_length_input.setSuffix(
|
|
2973
|
+
QCoreApplication.translate("PrimaryWindow", " sec", None)
|
|
2974
|
+
)
|
|
2456
2975
|
self.lower_tab_widget.setTabText(
|
|
2457
2976
|
self.lower_tab_widget.indexOf(self.classification_tab),
|
|
2458
2977
|
QCoreApplication.translate("PrimaryWindow", "Classification", None),
|
|
@@ -2506,7 +3025,33 @@ class Ui_PrimaryWindow(object):
|
|
|
2506
3025
|
self.upper_tab_widget.indexOf(self.scoring_tab),
|
|
2507
3026
|
QCoreApplication.translate("PrimaryWindow", "Sleep scoring", None),
|
|
2508
3027
|
)
|
|
2509
|
-
|
|
3028
|
+
# if QT_CONFIG(tooltip)
|
|
3029
|
+
self.save_config_button.setToolTip(
|
|
3030
|
+
QCoreApplication.translate(
|
|
3031
|
+
"PrimaryWindow", "Save current configuration", None
|
|
3032
|
+
)
|
|
3033
|
+
)
|
|
3034
|
+
# endif // QT_CONFIG(tooltip)
|
|
3035
|
+
self.save_config_button.setText(
|
|
3036
|
+
QCoreApplication.translate("PrimaryWindow", "Save settings", None)
|
|
3037
|
+
)
|
|
3038
|
+
self.save_config_status.setText("")
|
|
3039
|
+
self.settings_combobox.setItemText(
|
|
3040
|
+
0, QCoreApplication.translate("PrimaryWindow", "Brain states", None)
|
|
3041
|
+
)
|
|
3042
|
+
self.settings_combobox.setItemText(
|
|
3043
|
+
1, QCoreApplication.translate("PrimaryWindow", "UI defaults", None)
|
|
3044
|
+
)
|
|
3045
|
+
self.settings_combobox.setItemText(
|
|
3046
|
+
2, QCoreApplication.translate("PrimaryWindow", "EMG filter", None)
|
|
3047
|
+
)
|
|
3048
|
+
self.settings_combobox.setItemText(
|
|
3049
|
+
3,
|
|
3050
|
+
QCoreApplication.translate(
|
|
3051
|
+
"PrimaryWindow", "Training hyperparameters", None
|
|
3052
|
+
),
|
|
3053
|
+
)
|
|
3054
|
+
|
|
2510
3055
|
self.label_15.setText(
|
|
2511
3056
|
QCoreApplication.translate("PrimaryWindow", "Digit", None)
|
|
2512
3057
|
)
|
|
@@ -2550,25 +3095,105 @@ class Ui_PrimaryWindow(object):
|
|
|
2550
3095
|
self.label_3.setText(QCoreApplication.translate("PrimaryWindow", "0", None))
|
|
2551
3096
|
self.enable_state_0.setText("")
|
|
2552
3097
|
self.state_scored_0.setText("")
|
|
3098
|
+
self.settings_text.setText(
|
|
3099
|
+
QCoreApplication.translate(
|
|
3100
|
+
"PrimaryWindow",
|
|
3101
|
+
"This is the current set of brain states. Important notes:\n"
|
|
3102
|
+
"- You must click 'Save settings' to store any changes.\n"
|
|
3103
|
+
"- Changing these settings can prevent existing label files, calibration files, and trained models from working properly.\n"
|
|
3104
|
+
"- Reinstalling AccuSleePy will overwrite this configuration.\n"
|
|
3105
|
+
"\n"
|
|
3106
|
+
"Each brain state has several attributes:\n"
|
|
3107
|
+
"- Digit: how the brain state is represented in label files, and keyboard shortcut for this state in manual scoring.\n"
|
|
3108
|
+
"- Enabled: whether a brain state for this digit exists.\n"
|
|
3109
|
+
"- Name: unique name of the brain state (e.g., REM).\n"
|
|
3110
|
+
"- Scored: whether a classification model should output this brain state. If a state corresponds to missing/corrupted data, you probably want to uncheck this box.\n"
|
|
3111
|
+
"- Frequency: approximate relative frequency of this brain state. Does not need to be very accurate. Frequencies for all scored states must sum to 1.",
|
|
3112
|
+
None,
|
|
3113
|
+
)
|
|
3114
|
+
)
|
|
2553
3115
|
self.label_17.setText(
|
|
2554
|
-
QCoreApplication.translate("PrimaryWindow", "
|
|
3116
|
+
QCoreApplication.translate("PrimaryWindow", "Epoch length:", None)
|
|
3117
|
+
)
|
|
3118
|
+
self.default_epoch_input.setSuffix(
|
|
3119
|
+
QCoreApplication.translate("PrimaryWindow", " sec", None)
|
|
3120
|
+
)
|
|
3121
|
+
self.overwrite_default_checkbox.setText(
|
|
3122
|
+
QCoreApplication.translate(
|
|
3123
|
+
"PrimaryWindow", "Only overwrite undefined epochs", None
|
|
3124
|
+
)
|
|
2555
3125
|
)
|
|
2556
3126
|
self.confidence_setting_checkbox.setText(
|
|
3127
|
+
QCoreApplication.translate("PrimaryWindow", "Save confidence scores", None)
|
|
3128
|
+
)
|
|
3129
|
+
self.label_19.setText(
|
|
3130
|
+
QCoreApplication.translate("PrimaryWindow", "Minimum bout length:", None)
|
|
3131
|
+
)
|
|
3132
|
+
self.default_min_bout_length_spinbox.setSuffix(
|
|
3133
|
+
QCoreApplication.translate("PrimaryWindow", " sec", None)
|
|
3134
|
+
)
|
|
3135
|
+
self.ui_default_description_label.setText(
|
|
2557
3136
|
QCoreApplication.translate(
|
|
2558
|
-
"PrimaryWindow",
|
|
3137
|
+
"PrimaryWindow",
|
|
3138
|
+
"These are the default values/settings that are shown in the primary UI window when it starts up.\n"
|
|
3139
|
+
"\n"
|
|
3140
|
+
'Changes here will not affect the **current** state of the controls in the "Sleep scoring" tab.',
|
|
3141
|
+
None,
|
|
2559
3142
|
)
|
|
2560
3143
|
)
|
|
2561
|
-
|
|
2562
|
-
|
|
3144
|
+
self.filter_order_label.setText(
|
|
3145
|
+
QCoreApplication.translate("PrimaryWindow", "Filter order:", None)
|
|
3146
|
+
)
|
|
3147
|
+
self.bp_lower_label.setText(
|
|
3148
|
+
QCoreApplication.translate("PrimaryWindow", "Lower cutoff:", None)
|
|
3149
|
+
)
|
|
3150
|
+
self.bp_lower_spinbox.setSuffix(
|
|
3151
|
+
QCoreApplication.translate("PrimaryWindow", " Hz", None)
|
|
3152
|
+
)
|
|
3153
|
+
self.bp_upper_label.setText(
|
|
3154
|
+
QCoreApplication.translate("PrimaryWindow", "Upper cutoff:", None)
|
|
3155
|
+
)
|
|
3156
|
+
self.bp_upper_spinbox.setSuffix(
|
|
3157
|
+
QCoreApplication.translate("PrimaryWindow", " Hz", None)
|
|
3158
|
+
)
|
|
3159
|
+
self.reset_emg_params_button.setText(
|
|
3160
|
+
QCoreApplication.translate("PrimaryWindow", "reset to defaults", None)
|
|
3161
|
+
)
|
|
3162
|
+
self.emg_filter_description_label.setText(
|
|
2563
3163
|
QCoreApplication.translate(
|
|
2564
|
-
"PrimaryWindow",
|
|
3164
|
+
"PrimaryWindow",
|
|
3165
|
+
"EMG power is calculated as the root-mean-square of the EMG signal in each epoch after a bandpass filter is applied. You can change the proprties of that filter here. If the manual scoring window displays the EMG signal but not the EMG power, you can try lowering the filter order to 4.\n"
|
|
3166
|
+
"\n"
|
|
3167
|
+
"Changing these settings can prevent existing classification models and calibration files from working as expected. You will probably want to recreate them using your new settings.",
|
|
3168
|
+
None,
|
|
2565
3169
|
)
|
|
2566
3170
|
)
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
3171
|
+
self.batch_size_label.setText(
|
|
3172
|
+
QCoreApplication.translate("PrimaryWindow", "Batch size:", None)
|
|
3173
|
+
)
|
|
3174
|
+
self.learning_rate_label.setText(
|
|
3175
|
+
QCoreApplication.translate("PrimaryWindow", "Learning rate:", None)
|
|
3176
|
+
)
|
|
3177
|
+
self.momentum_label.setText(
|
|
3178
|
+
QCoreApplication.translate("PrimaryWindow", "Momentum:", None)
|
|
3179
|
+
)
|
|
3180
|
+
self.training_epochs_label.setText(
|
|
3181
|
+
QCoreApplication.translate("PrimaryWindow", "Epochs:", None)
|
|
3182
|
+
)
|
|
3183
|
+
self.reset_hyperparams_button.setText(
|
|
3184
|
+
QCoreApplication.translate("PrimaryWindow", "reset to defaults", None)
|
|
3185
|
+
)
|
|
3186
|
+
self.hyperparameter_description_label.setText(
|
|
3187
|
+
QCoreApplication.translate(
|
|
3188
|
+
"PrimaryWindow",
|
|
3189
|
+
"These are the hyperparameters used for training new classification models.\n"
|
|
3190
|
+
"- Batch size: number of examples in each training iteration\n"
|
|
3191
|
+
"- Learning rate: step size for adjusting model weights\n"
|
|
3192
|
+
"- Momentum: amount of past gradients to use in the current update. Typically between 0.6 and 0.99\n"
|
|
3193
|
+
"- Epochs: number of passes over the training data",
|
|
3194
|
+
None,
|
|
3195
|
+
)
|
|
2570
3196
|
)
|
|
2571
|
-
self.save_config_status.setText("")
|
|
2572
3197
|
self.upper_tab_widget.setTabText(
|
|
2573
3198
|
self.upper_tab_widget.indexOf(self.settings_tab),
|
|
2574
3199
|
QCoreApplication.translate("PrimaryWindow", "Settings", None),
|