misleep 0.3.0__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.
Files changed (94) hide show
  1. misleep/__init__.py +111 -0
  2. misleep/__main__.py +16 -0
  3. misleep/analysis/__init__.py +23 -0
  4. misleep/analysis/auto_stage.py +158 -0
  5. misleep/analysis/detection.py +198 -0
  6. misleep/analysis/features.py +131 -0
  7. misleep/analysis/models/P30_EEG_F_lightgbm.pkl +0 -0
  8. misleep/analysis/models/P30_EEG_P_lightgbm.pkl +0 -0
  9. misleep/analysis/models/__init__.py +0 -0
  10. misleep/analysis/models/ado_EEG_F_lightgbm.pkl +0 -0
  11. misleep/analysis/models/ado_EEG_P_lightgbm.pkl +0 -0
  12. misleep/analysis/models/adult_EEG_F_lightgbm.pkl +0 -0
  13. misleep/analysis/models/adult_EEG_P_lightgbm.pkl +0 -0
  14. misleep/analysis/transformer/__init__.py +46 -0
  15. misleep/analysis/transformer/checkpoints/CausalTransformer_best.pt +0 -0
  16. misleep/analysis/transformer/checkpoints/__init__.py +0 -0
  17. misleep/analysis/transformer/configs.py +52 -0
  18. misleep/analysis/transformer/data.py +362 -0
  19. misleep/analysis/transformer/inference.py +328 -0
  20. misleep/analysis/transformer/models.py +220 -0
  21. misleep/analysis/transformer/preprocessing.py +105 -0
  22. misleep/config/__init__.py +105 -0
  23. misleep/config/default_config.ini +38 -0
  24. misleep/data/__init__.py +13 -0
  25. misleep/data/annotation.py +114 -0
  26. misleep/data/midata.py +387 -0
  27. misleep/gui/__init__.py +23 -0
  28. misleep/gui/app.py +183 -0
  29. misleep/gui/config_dialog.py +429 -0
  30. misleep/gui/dialogs.py +1107 -0
  31. misleep/gui/event_filters.py +26 -0
  32. misleep/gui/main_window.py +2699 -0
  33. misleep/gui/qt_utils.py +277 -0
  34. misleep/gui/resources/__init__.py +9 -0
  35. misleep/gui/resources/entire_logo.png +0 -0
  36. misleep/gui/resources/logo.png +0 -0
  37. misleep/gui/resources/misleep.ico +0 -0
  38. misleep/gui/resources/misleep.qrc +7 -0
  39. misleep/gui/resources/misleep_rc.py +1324 -0
  40. misleep/gui/spec_window.py +187 -0
  41. misleep/gui/style.py +994 -0
  42. misleep/gui/uis/SWA_detect_dialog.ui +181 -0
  43. misleep/gui/uis/SWA_detect_dialog_ui.py +176 -0
  44. misleep/gui/uis/__init__.py +6 -0
  45. misleep/gui/uis/about.ui +88 -0
  46. misleep/gui/uis/about_ui.py +80 -0
  47. misleep/gui/uis/auto_stage_causalTransformer_dialog.ui +77 -0
  48. misleep/gui/uis/auto_stage_causalTransformer_dialog_ui.py +90 -0
  49. misleep/gui/uis/auto_stage_lightGBM_dialog.ui +124 -0
  50. misleep/gui/uis/auto_stage_lightGBM_dialog_ui.py +124 -0
  51. misleep/gui/uis/horizontal_line_dialog.ui +166 -0
  52. misleep/gui/uis/horizontal_line_dialog_ui.py +157 -0
  53. misleep/gui/uis/label_dialog.ui +65 -0
  54. misleep/gui/uis/label_dialog_ui.py +72 -0
  55. misleep/gui/uis/main_window.ui +871 -0
  56. misleep/gui/uis/main_window_ui.py +616 -0
  57. misleep/gui/uis/save_data_dialog.ui +95 -0
  58. misleep/gui/uis/save_data_dialog_ui.py +98 -0
  59. misleep/gui/uis/spec_window.ui +109 -0
  60. misleep/gui/uis/spec_window_ui.py +103 -0
  61. misleep/gui/uis/spindle_detect_dialog.ui +202 -0
  62. misleep/gui/uis/spindle_detect_dialog_ui.py +194 -0
  63. misleep/gui/uis/state_spectral_dialog.ui +240 -0
  64. misleep/gui/uis/state_spectral_dialog_ui.py +204 -0
  65. misleep/gui/uis/transfer_result_dialog.ui +104 -0
  66. misleep/gui/uis/transfer_result_dialog_ui.py +94 -0
  67. misleep/gui/workers.py +69 -0
  68. misleep/io/__init__.py +68 -0
  69. misleep/io/annotation.py +367 -0
  70. misleep/io/array.py +209 -0
  71. misleep/io/base.py +174 -0
  72. misleep/io/edf.py +109 -0
  73. misleep/io/mat.py +189 -0
  74. misleep/logger.py +79 -0
  75. misleep/preprocessing/__init__.py +23 -0
  76. misleep/preprocessing/artifacts.py +76 -0
  77. misleep/preprocessing/filtering.py +94 -0
  78. misleep/preprocessing/segment.py +59 -0
  79. misleep/preprocessing/spectral.py +169 -0
  80. misleep/utils/__init__.py +45 -0
  81. misleep/utils/annotation.py +130 -0
  82. misleep/utils/entropy.py +135 -0
  83. misleep/utils/misc.py +69 -0
  84. misleep/utils/time_utils.py +61 -0
  85. misleep/viz/__init__.py +12 -0
  86. misleep/viz/hypnogram.py +48 -0
  87. misleep/viz/signals.py +51 -0
  88. misleep/viz/spectral.py +98 -0
  89. misleep-0.3.0.dist-info/METADATA +249 -0
  90. misleep-0.3.0.dist-info/RECORD +94 -0
  91. misleep-0.3.0.dist-info/WHEEL +5 -0
  92. misleep-0.3.0.dist-info/entry_points.txt +15 -0
  93. misleep-0.3.0.dist-info/licenses/LICENSE +29 -0
  94. misleep-0.3.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,95 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ui version="4.0">
3
+ <class>SaveDataDialog</class>
4
+ <widget class="QDialog" name="SaveDataDialog">
5
+ <property name="geometry">
6
+ <rect>
7
+ <x>0</x>
8
+ <y>0</y>
9
+ <width>409</width>
10
+ <height>516</height>
11
+ </rect>
12
+ </property>
13
+ <property name="windowTitle">
14
+ <string>Dialog</string>
15
+ </property>
16
+ <layout class="QGridLayout" name="gridLayout_2">
17
+ <item row="1" column="0">
18
+ <widget class="QPushButton" name="OKBtn">
19
+ <property name="text">
20
+ <string>OK</string>
21
+ </property>
22
+ </widget>
23
+ </item>
24
+ <item row="1" column="1">
25
+ <widget class="QPushButton" name="CancelBtn">
26
+ <property name="text">
27
+ <string>Cancel</string>
28
+ </property>
29
+ </widget>
30
+ </item>
31
+ <item row="0" column="0" colspan="2">
32
+ <widget class="QGroupBox" name="ACTimeEdit">
33
+ <property name="title">
34
+ <string>Save data options</string>
35
+ </property>
36
+ <layout class="QGridLayout" name="gridLayout">
37
+ <item row="2" column="0">
38
+ <widget class="QCheckBox" name="CropDataStartCheckBox">
39
+ <property name="text">
40
+ <string>Crop data - Set Start Time</string>
41
+ </property>
42
+ </widget>
43
+ </item>
44
+ <item row="3" column="0">
45
+ <widget class="QDateTimeEdit" name="CropStartTimeEditor">
46
+ <property name="displayFormat">
47
+ <string>yyyy/MM/dd HH:mm:ss</string>
48
+ </property>
49
+ </widget>
50
+ </item>
51
+ <item row="1" column="0" colspan="2">
52
+ <widget class="QListView" name="ChannelListView">
53
+ <property name="sizeAdjustPolicy">
54
+ <enum>QAbstractScrollArea::AdjustIgnored</enum>
55
+ </property>
56
+ <property name="editTriggers">
57
+ <set>QAbstractItemView::NoEditTriggers</set>
58
+ </property>
59
+ <property name="tabKeyNavigation">
60
+ <bool>true</bool>
61
+ </property>
62
+ <property name="selectionMode">
63
+ <enum>QAbstractItemView::MultiSelection</enum>
64
+ </property>
65
+ </widget>
66
+ </item>
67
+ <item row="0" column="0">
68
+ <widget class="QLabel" name="label_3">
69
+ <property name="text">
70
+ <string>Select Channels to Save</string>
71
+ </property>
72
+ </widget>
73
+ </item>
74
+ <item row="4" column="0">
75
+ <widget class="QCheckBox" name="CropDataEndCheckBox">
76
+ <property name="text">
77
+ <string>Crop data - Set End Time</string>
78
+ </property>
79
+ </widget>
80
+ </item>
81
+ <item row="5" column="0">
82
+ <widget class="QDateTimeEdit" name="CropEndTimeEditor">
83
+ <property name="displayFormat">
84
+ <string>yyyy/MM/dd HH:mm:ss</string>
85
+ </property>
86
+ </widget>
87
+ </item>
88
+ </layout>
89
+ </widget>
90
+ </item>
91
+ </layout>
92
+ </widget>
93
+ <resources/>
94
+ <connections/>
95
+ </ui>
@@ -0,0 +1,98 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ ################################################################################
4
+ ## Form generated from reading UI file 'save_data_dialog.ui'
5
+ ##
6
+ ## Created by: Qt User Interface Compiler version 6.11.1
7
+ ##
8
+ ## WARNING! All changes made in this file will be lost when recompiling UI file!
9
+ ################################################################################
10
+
11
+ from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
12
+ QMetaObject, QObject, QPoint, QRect,
13
+ QSize, QTime, QUrl, Qt)
14
+ from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
15
+ QFont, QFontDatabase, QGradient, QIcon,
16
+ QImage, QKeySequence, QLinearGradient, QPainter,
17
+ QPalette, QPixmap, QRadialGradient, QTransform)
18
+ from PySide6.QtWidgets import (QAbstractItemView, QAbstractScrollArea, QApplication, QCheckBox,
19
+ QDateTimeEdit, QDialog, QGridLayout, QGroupBox,
20
+ QLabel, QListView, QPushButton, QSizePolicy,
21
+ QWidget)
22
+
23
+ class Ui_SaveDataDialog(object):
24
+ def setupUi(self, SaveDataDialog):
25
+ if not SaveDataDialog.objectName():
26
+ SaveDataDialog.setObjectName(u"SaveDataDialog")
27
+ SaveDataDialog.resize(409, 516)
28
+ self.gridLayout_2 = QGridLayout(SaveDataDialog)
29
+ self.gridLayout_2.setObjectName(u"gridLayout_2")
30
+ self.OKBtn = QPushButton(SaveDataDialog)
31
+ self.OKBtn.setObjectName(u"OKBtn")
32
+
33
+ self.gridLayout_2.addWidget(self.OKBtn, 1, 0, 1, 1)
34
+
35
+ self.CancelBtn = QPushButton(SaveDataDialog)
36
+ self.CancelBtn.setObjectName(u"CancelBtn")
37
+
38
+ self.gridLayout_2.addWidget(self.CancelBtn, 1, 1, 1, 1)
39
+
40
+ self.ACTimeEdit = QGroupBox(SaveDataDialog)
41
+ self.ACTimeEdit.setObjectName(u"ACTimeEdit")
42
+ self.gridLayout = QGridLayout(self.ACTimeEdit)
43
+ self.gridLayout.setObjectName(u"gridLayout")
44
+ self.CropDataStartCheckBox = QCheckBox(self.ACTimeEdit)
45
+ self.CropDataStartCheckBox.setObjectName(u"CropDataStartCheckBox")
46
+
47
+ self.gridLayout.addWidget(self.CropDataStartCheckBox, 2, 0, 1, 1)
48
+
49
+ self.CropStartTimeEditor = QDateTimeEdit(self.ACTimeEdit)
50
+ self.CropStartTimeEditor.setObjectName(u"CropStartTimeEditor")
51
+
52
+ self.gridLayout.addWidget(self.CropStartTimeEditor, 3, 0, 1, 1)
53
+
54
+ self.ChannelListView = QListView(self.ACTimeEdit)
55
+ self.ChannelListView.setObjectName(u"ChannelListView")
56
+ self.ChannelListView.setSizeAdjustPolicy(QAbstractScrollArea.AdjustIgnored)
57
+ self.ChannelListView.setEditTriggers(QAbstractItemView.NoEditTriggers)
58
+ self.ChannelListView.setTabKeyNavigation(True)
59
+ self.ChannelListView.setSelectionMode(QAbstractItemView.MultiSelection)
60
+
61
+ self.gridLayout.addWidget(self.ChannelListView, 1, 0, 1, 2)
62
+
63
+ self.label_3 = QLabel(self.ACTimeEdit)
64
+ self.label_3.setObjectName(u"label_3")
65
+
66
+ self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1)
67
+
68
+ self.CropDataEndCheckBox = QCheckBox(self.ACTimeEdit)
69
+ self.CropDataEndCheckBox.setObjectName(u"CropDataEndCheckBox")
70
+
71
+ self.gridLayout.addWidget(self.CropDataEndCheckBox, 4, 0, 1, 1)
72
+
73
+ self.CropEndTimeEditor = QDateTimeEdit(self.ACTimeEdit)
74
+ self.CropEndTimeEditor.setObjectName(u"CropEndTimeEditor")
75
+
76
+ self.gridLayout.addWidget(self.CropEndTimeEditor, 5, 0, 1, 1)
77
+
78
+
79
+ self.gridLayout_2.addWidget(self.ACTimeEdit, 0, 0, 1, 2)
80
+
81
+
82
+ self.retranslateUi(SaveDataDialog)
83
+
84
+ QMetaObject.connectSlotsByName(SaveDataDialog)
85
+ # setupUi
86
+
87
+ def retranslateUi(self, SaveDataDialog):
88
+ SaveDataDialog.setWindowTitle(QCoreApplication.translate("SaveDataDialog", u"Dialog", None))
89
+ self.OKBtn.setText(QCoreApplication.translate("SaveDataDialog", u"OK", None))
90
+ self.CancelBtn.setText(QCoreApplication.translate("SaveDataDialog", u"Cancel", None))
91
+ self.ACTimeEdit.setTitle(QCoreApplication.translate("SaveDataDialog", u"Save data options", None))
92
+ self.CropDataStartCheckBox.setText(QCoreApplication.translate("SaveDataDialog", u"Crop data - Set Start Time", None))
93
+ self.CropStartTimeEditor.setDisplayFormat(QCoreApplication.translate("SaveDataDialog", u"yyyy/MM/dd HH:mm:ss", None))
94
+ self.label_3.setText(QCoreApplication.translate("SaveDataDialog", u"Select Channels to Save", None))
95
+ self.CropDataEndCheckBox.setText(QCoreApplication.translate("SaveDataDialog", u"Crop data - Set End Time", None))
96
+ self.CropEndTimeEditor.setDisplayFormat(QCoreApplication.translate("SaveDataDialog", u"yyyy/MM/dd HH:mm:ss", None))
97
+ # retranslateUi
98
+
@@ -0,0 +1,109 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ui version="4.0">
3
+ <class>spec_window</class>
4
+ <widget class="QMainWindow" name="spec_window">
5
+ <property name="geometry">
6
+ <rect>
7
+ <x>0</x>
8
+ <y>0</y>
9
+ <width>932</width>
10
+ <height>900</height>
11
+ </rect>
12
+ </property>
13
+ <property name="minimumSize">
14
+ <size>
15
+ <width>860</width>
16
+ <height>800</height>
17
+ </size>
18
+ </property>
19
+ <property name="windowTitle">
20
+ <string>Spectrum and spectrogram window</string>
21
+ </property>
22
+ <property name="windowIcon">
23
+ <iconset resource="../resources/misleep.qrc">
24
+ <normaloff>:/logo/logo.png</normaloff>:/logo/logo.png</iconset>
25
+ </property>
26
+ <widget class="QWidget" name="centralwidget">
27
+ <layout class="QGridLayout" name="gridLayout">
28
+ <item row="0" column="0">
29
+ <widget class="QGroupBox" name="groupBox">
30
+ <property name="title">
31
+ <string>Spectrum</string>
32
+ </property>
33
+ <layout class="QFormLayout" name="formLayout">
34
+ <item row="1" column="0">
35
+ <widget class="QPushButton" name="SpectrumSaveBt">
36
+ <property name="text">
37
+ <string>Save</string>
38
+ </property>
39
+ </widget>
40
+ </item>
41
+ <item row="1" column="1">
42
+ <widget class="QLabel" name="DeltaThetaRatioLabel">
43
+ <property name="text">
44
+ <string>Delta/Theta ratio: </string>
45
+ </property>
46
+ </widget>
47
+ </item>
48
+ <item row="0" column="0" colspan="2">
49
+ <widget class="QScrollArea" name="SpectrumScrollArea">
50
+ <property name="widgetResizable">
51
+ <bool>true</bool>
52
+ </property>
53
+ <widget class="QWidget" name="scrollAreaWidgetContents">
54
+ <property name="geometry">
55
+ <rect>
56
+ <x>0</x>
57
+ <y>0</y>
58
+ <width>892</width>
59
+ <height>364</height>
60
+ </rect>
61
+ </property>
62
+ </widget>
63
+ </widget>
64
+ </item>
65
+ </layout>
66
+ </widget>
67
+ </item>
68
+ <item row="1" column="0">
69
+ <widget class="QGroupBox" name="groupBox_2">
70
+ <property name="title">
71
+ <string>Spectrogram</string>
72
+ </property>
73
+ <layout class="QFormLayout" name="formLayout_2">
74
+ <item row="0" column="0" colspan="2">
75
+ <widget class="QScrollArea" name="SpectrogramScrollArea">
76
+ <property name="widgetResizable">
77
+ <bool>true</bool>
78
+ </property>
79
+ <widget class="QWidget" name="scrollAreaWidgetContents_2">
80
+ <property name="geometry">
81
+ <rect>
82
+ <x>0</x>
83
+ <y>0</y>
84
+ <width>892</width>
85
+ <height>364</height>
86
+ </rect>
87
+ </property>
88
+ </widget>
89
+ </widget>
90
+ </item>
91
+ <item row="1" column="0">
92
+ <widget class="QPushButton" name="SpectrogramSaveBt">
93
+ <property name="text">
94
+ <string>Save</string>
95
+ </property>
96
+ </widget>
97
+ </item>
98
+ </layout>
99
+ </widget>
100
+ </item>
101
+ </layout>
102
+ </widget>
103
+ <widget class="QStatusBar" name="statusbar"/>
104
+ </widget>
105
+ <resources>
106
+ <include location="../resources/misleep.qrc"/>
107
+ </resources>
108
+ <connections/>
109
+ </ui>
@@ -0,0 +1,103 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ ################################################################################
4
+ ## Form generated from reading UI file 'spec_window.ui'
5
+ ##
6
+ ## Created by: Qt User Interface Compiler version 6.11.1
7
+ ##
8
+ ## WARNING! All changes made in this file will be lost when recompiling UI file!
9
+ ################################################################################
10
+
11
+ from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
12
+ QMetaObject, QObject, QPoint, QRect,
13
+ QSize, QTime, QUrl, Qt)
14
+ from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
15
+ QFont, QFontDatabase, QGradient, QIcon,
16
+ QImage, QKeySequence, QLinearGradient, QPainter,
17
+ QPalette, QPixmap, QRadialGradient, QTransform)
18
+ from PySide6.QtWidgets import (QApplication, QFormLayout, QGridLayout, QGroupBox,
19
+ QLabel, QMainWindow, QPushButton, QScrollArea,
20
+ QSizePolicy, QStatusBar, QWidget)
21
+ from misleep.gui.resources import misleep_rc
22
+
23
+ class Ui_spec_window(object):
24
+ def setupUi(self, spec_window):
25
+ if not spec_window.objectName():
26
+ spec_window.setObjectName(u"spec_window")
27
+ spec_window.resize(932, 900)
28
+ spec_window.setMinimumSize(QSize(860, 800))
29
+ icon = QIcon()
30
+ icon.addFile(u":/logo/logo.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
31
+ spec_window.setWindowIcon(icon)
32
+ self.centralwidget = QWidget(spec_window)
33
+ self.centralwidget.setObjectName(u"centralwidget")
34
+ self.gridLayout = QGridLayout(self.centralwidget)
35
+ self.gridLayout.setObjectName(u"gridLayout")
36
+ self.groupBox = QGroupBox(self.centralwidget)
37
+ self.groupBox.setObjectName(u"groupBox")
38
+ self.formLayout = QFormLayout(self.groupBox)
39
+ self.formLayout.setObjectName(u"formLayout")
40
+ self.SpectrumSaveBt = QPushButton(self.groupBox)
41
+ self.SpectrumSaveBt.setObjectName(u"SpectrumSaveBt")
42
+
43
+ self.formLayout.setWidget(1, QFormLayout.ItemRole.LabelRole, self.SpectrumSaveBt)
44
+
45
+ self.DeltaThetaRatioLabel = QLabel(self.groupBox)
46
+ self.DeltaThetaRatioLabel.setObjectName(u"DeltaThetaRatioLabel")
47
+
48
+ self.formLayout.setWidget(1, QFormLayout.ItemRole.FieldRole, self.DeltaThetaRatioLabel)
49
+
50
+ self.SpectrumScrollArea = QScrollArea(self.groupBox)
51
+ self.SpectrumScrollArea.setObjectName(u"SpectrumScrollArea")
52
+ self.SpectrumScrollArea.setWidgetResizable(True)
53
+ self.scrollAreaWidgetContents = QWidget()
54
+ self.scrollAreaWidgetContents.setObjectName(u"scrollAreaWidgetContents")
55
+ self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 892, 364))
56
+ self.SpectrumScrollArea.setWidget(self.scrollAreaWidgetContents)
57
+
58
+ self.formLayout.setWidget(0, QFormLayout.ItemRole.SpanningRole, self.SpectrumScrollArea)
59
+
60
+
61
+ self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 1)
62
+
63
+ self.groupBox_2 = QGroupBox(self.centralwidget)
64
+ self.groupBox_2.setObjectName(u"groupBox_2")
65
+ self.formLayout_2 = QFormLayout(self.groupBox_2)
66
+ self.formLayout_2.setObjectName(u"formLayout_2")
67
+ self.SpectrogramScrollArea = QScrollArea(self.groupBox_2)
68
+ self.SpectrogramScrollArea.setObjectName(u"SpectrogramScrollArea")
69
+ self.SpectrogramScrollArea.setWidgetResizable(True)
70
+ self.scrollAreaWidgetContents_2 = QWidget()
71
+ self.scrollAreaWidgetContents_2.setObjectName(u"scrollAreaWidgetContents_2")
72
+ self.scrollAreaWidgetContents_2.setGeometry(QRect(0, 0, 892, 364))
73
+ self.SpectrogramScrollArea.setWidget(self.scrollAreaWidgetContents_2)
74
+
75
+ self.formLayout_2.setWidget(0, QFormLayout.ItemRole.SpanningRole, self.SpectrogramScrollArea)
76
+
77
+ self.SpectrogramSaveBt = QPushButton(self.groupBox_2)
78
+ self.SpectrogramSaveBt.setObjectName(u"SpectrogramSaveBt")
79
+
80
+ self.formLayout_2.setWidget(1, QFormLayout.ItemRole.LabelRole, self.SpectrogramSaveBt)
81
+
82
+
83
+ self.gridLayout.addWidget(self.groupBox_2, 1, 0, 1, 1)
84
+
85
+ spec_window.setCentralWidget(self.centralwidget)
86
+ self.statusbar = QStatusBar(spec_window)
87
+ self.statusbar.setObjectName(u"statusbar")
88
+ spec_window.setStatusBar(self.statusbar)
89
+
90
+ self.retranslateUi(spec_window)
91
+
92
+ QMetaObject.connectSlotsByName(spec_window)
93
+ # setupUi
94
+
95
+ def retranslateUi(self, spec_window):
96
+ spec_window.setWindowTitle(QCoreApplication.translate("spec_window", u"Spectrum and spectrogram window", None))
97
+ self.groupBox.setTitle(QCoreApplication.translate("spec_window", u"Spectrum", None))
98
+ self.SpectrumSaveBt.setText(QCoreApplication.translate("spec_window", u"Save", None))
99
+ self.DeltaThetaRatioLabel.setText(QCoreApplication.translate("spec_window", u"Delta/Theta ratio: ", None))
100
+ self.groupBox_2.setTitle(QCoreApplication.translate("spec_window", u"Spectrogram", None))
101
+ self.SpectrogramSaveBt.setText(QCoreApplication.translate("spec_window", u"Save", None))
102
+ # retranslateUi
103
+
@@ -0,0 +1,202 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ui version="4.0">
3
+ <class>SpindleDetectDialog</class>
4
+ <widget class="QDialog" name="SpindleDetectDialog">
5
+ <property name="geometry">
6
+ <rect>
7
+ <x>0</x>
8
+ <y>0</y>
9
+ <width>278</width>
10
+ <height>429</height>
11
+ </rect>
12
+ </property>
13
+ <property name="windowTitle">
14
+ <string>Dialog</string>
15
+ </property>
16
+ <property name="windowIcon">
17
+ <iconset resource="../resources/misleep.qrc">
18
+ <normaloff>:/logo/logo.png</normaloff>:/logo/logo.png</iconset>
19
+ </property>
20
+ <layout class="QGridLayout" name="gridLayout">
21
+ <item row="0" column="0" colspan="2">
22
+ <widget class="QGroupBox" name="groupBox">
23
+ <property name="title">
24
+ <string>Spindle detection options</string>
25
+ </property>
26
+ <layout class="QGridLayout" name="gridLayout_2">
27
+ <item row="12" column="0">
28
+ <widget class="QCheckBox" name="WakeCheckbox">
29
+ <property name="text">
30
+ <string>Wake</string>
31
+ </property>
32
+ </widget>
33
+ </item>
34
+ <item row="6" column="0">
35
+ <widget class="QDoubleSpinBox" name="StdEditor">
36
+ <property name="value">
37
+ <double>1.500000000000000</double>
38
+ </property>
39
+ </widget>
40
+ </item>
41
+ <item row="14" column="0" colspan="3">
42
+ <widget class="QCheckBox" name="ExportCheckbox">
43
+ <property name="text">
44
+ <string>Export to csv</string>
45
+ </property>
46
+ </widget>
47
+ </item>
48
+ <item row="1" column="0" colspan="3">
49
+ <widget class="Line" name="line">
50
+ <property name="orientation">
51
+ <enum>Qt::Horizontal</enum>
52
+ </property>
53
+ </widget>
54
+ </item>
55
+ <item row="11" column="1">
56
+ <widget class="QCheckBox" name="REMCheckbox">
57
+ <property name="text">
58
+ <string>REM</string>
59
+ </property>
60
+ </widget>
61
+ </item>
62
+ <item row="0" column="0">
63
+ <widget class="QLabel" name="label">
64
+ <property name="text">
65
+ <string>Channel:</string>
66
+ </property>
67
+ </widget>
68
+ </item>
69
+ <item row="6" column="1">
70
+ <widget class="QLabel" name="label_5">
71
+ <property name="text">
72
+ <string>* STD + MEAN</string>
73
+ </property>
74
+ </widget>
75
+ </item>
76
+ <item row="10" column="0" colspan="3">
77
+ <widget class="QLabel" name="label_4">
78
+ <property name="text">
79
+ <string>State</string>
80
+ </property>
81
+ </widget>
82
+ </item>
83
+ <item row="12" column="1">
84
+ <widget class="QCheckBox" name="InitCheckbox">
85
+ <property name="text">
86
+ <string>Init</string>
87
+ </property>
88
+ </widget>
89
+ </item>
90
+ <item row="0" column="1" colspan="2">
91
+ <widget class="QComboBox" name="ChannelComBox"/>
92
+ </item>
93
+ <item row="11" column="0">
94
+ <widget class="QCheckBox" name="NREMCheckbox">
95
+ <property name="text">
96
+ <string>NREM</string>
97
+ </property>
98
+ <property name="checked">
99
+ <bool>true</bool>
100
+ </property>
101
+ </widget>
102
+ </item>
103
+ <item row="4" column="0" colspan="3">
104
+ <widget class="Line" name="line_2">
105
+ <property name="orientation">
106
+ <enum>Qt::Horizontal</enum>
107
+ </property>
108
+ </widget>
109
+ </item>
110
+ <item row="2" column="0" colspan="3">
111
+ <widget class="QLabel" name="label_2">
112
+ <property name="text">
113
+ <string>Frequency band:</string>
114
+ </property>
115
+ </widget>
116
+ </item>
117
+ <item row="5" column="0" colspan="2">
118
+ <widget class="QLabel" name="label_3">
119
+ <property name="text">
120
+ <string>Spindle square power threshold:</string>
121
+ </property>
122
+ </widget>
123
+ </item>
124
+ <item row="13" column="0" colspan="3">
125
+ <widget class="Line" name="line_4">
126
+ <property name="orientation">
127
+ <enum>Qt::Horizontal</enum>
128
+ </property>
129
+ </widget>
130
+ </item>
131
+ <item row="9" column="0" colspan="3">
132
+ <widget class="Line" name="line_3">
133
+ <property name="orientation">
134
+ <enum>Qt::Horizontal</enum>
135
+ </property>
136
+ </widget>
137
+ </item>
138
+ <item row="7" column="0" colspan="3">
139
+ <widget class="QLabel" name="label_6">
140
+ <property name="text">
141
+ <string>Spindle duration threshold</string>
142
+ </property>
143
+ </widget>
144
+ </item>
145
+ <item row="3" column="0">
146
+ <widget class="QDoubleSpinBox" name="FreqLowEditor">
147
+ <property name="decimals">
148
+ <number>1</number>
149
+ </property>
150
+ <property name="value">
151
+ <double>10.000000000000000</double>
152
+ </property>
153
+ </widget>
154
+ </item>
155
+ <item row="3" column="1">
156
+ <widget class="QDoubleSpinBox" name="FreqHighEditor">
157
+ <property name="decimals">
158
+ <number>1</number>
159
+ </property>
160
+ <property name="value">
161
+ <double>15.000000000000000</double>
162
+ </property>
163
+ </widget>
164
+ </item>
165
+ <item row="8" column="0">
166
+ <widget class="QDoubleSpinBox" name="durationThresholdEditor">
167
+ <property name="value">
168
+ <double>0.200000000000000</double>
169
+ </property>
170
+ </widget>
171
+ </item>
172
+ <item row="8" column="1">
173
+ <widget class="QLabel" name="label_7">
174
+ <property name="text">
175
+ <string>*STD + MEAN</string>
176
+ </property>
177
+ </widget>
178
+ </item>
179
+ </layout>
180
+ </widget>
181
+ </item>
182
+ <item row="1" column="0">
183
+ <widget class="QPushButton" name="OKBt">
184
+ <property name="text">
185
+ <string>Ok</string>
186
+ </property>
187
+ </widget>
188
+ </item>
189
+ <item row="1" column="1">
190
+ <widget class="QPushButton" name="CancelBt">
191
+ <property name="text">
192
+ <string>Cancel</string>
193
+ </property>
194
+ </widget>
195
+ </item>
196
+ </layout>
197
+ </widget>
198
+ <resources>
199
+ <include location="../resources/misleep.qrc"/>
200
+ </resources>
201
+ <connections/>
202
+ </ui>