SpecLog 0.0.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.
- SpecLog/SpecLog.py +277 -0
- SpecLog/SpecLogger.py +128 -0
- SpecLog/__init__.py +5 -0
- SpecLog/config/__init__.py +0 -0
- SpecLog/config/config.py +93 -0
- SpecLog/debugLog.py +36 -0
- SpecLog/device.py +156 -0
- SpecLog/loggerConfig.py +190 -0
- SpecLog/monitor.py +1023 -0
- SpecLog/ui/__init__.py +0 -0
- SpecLog/ui/plotting.py +297 -0
- SpecLog/ui/plotting.ui +557 -0
- SpecLog/version.py +1 -0
- speclog-0.0.1.dist-info/METADATA +19 -0
- speclog-0.0.1.dist-info/RECORD +18 -0
- speclog-0.0.1.dist-info/WHEEL +5 -0
- speclog-0.0.1.dist-info/entry_points.txt +7 -0
- speclog-0.0.1.dist-info/top_level.txt +1 -0
SpecLog/ui/__init__.py
ADDED
|
File without changes
|
SpecLog/ui/plotting.py
ADDED
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
################################################################################
|
|
4
|
+
## Form generated from reading UI file 'plotting.ui'
|
|
5
|
+
##
|
|
6
|
+
## Created by: Qt User Interface Compiler version 6.6.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 (QAction, QBrush, QColor, QConicalGradient,
|
|
15
|
+
QCursor, QFont, QFontDatabase, QGradient,
|
|
16
|
+
QIcon, QImage, QKeySequence, QLinearGradient,
|
|
17
|
+
QPainter, QPalette, QPixmap, QRadialGradient,
|
|
18
|
+
QTransform)
|
|
19
|
+
from PySide6.QtWidgets import (QAbstractItemView, QApplication, QCheckBox, QFormLayout,
|
|
20
|
+
QGridLayout, QGroupBox, QLabel, QLayout,
|
|
21
|
+
QLineEdit, QListWidget, QListWidgetItem, QMainWindow,
|
|
22
|
+
QMenu, QMenuBar, QPlainTextEdit, QPushButton,
|
|
23
|
+
QSizePolicy, QSpinBox, QStatusBar, QWidget)
|
|
24
|
+
|
|
25
|
+
from pyqtgraph import PlotWidget
|
|
26
|
+
|
|
27
|
+
class Ui_MainWindow(object):
|
|
28
|
+
def setupUi(self, MainWindow):
|
|
29
|
+
if not MainWindow.objectName():
|
|
30
|
+
MainWindow.setObjectName(u"MainWindow")
|
|
31
|
+
MainWindow.resize(1330, 1009)
|
|
32
|
+
self.loadFile = QAction(MainWindow)
|
|
33
|
+
self.loadFile.setObjectName(u"loadFile")
|
|
34
|
+
self.centralwidget = QWidget(MainWindow)
|
|
35
|
+
self.centralwidget.setObjectName(u"centralwidget")
|
|
36
|
+
self.gridLayout_2 = QGridLayout(self.centralwidget)
|
|
37
|
+
self.gridLayout_2.setObjectName(u"gridLayout_2")
|
|
38
|
+
self.groupBox_6 = QGroupBox(self.centralwidget)
|
|
39
|
+
self.groupBox_6.setObjectName(u"groupBox_6")
|
|
40
|
+
self.groupBox_6.setMinimumSize(QSize(301, 0))
|
|
41
|
+
self.groupBox_6.setMaximumSize(QSize(301, 16777215))
|
|
42
|
+
self.groupBox_6.setFlat(False)
|
|
43
|
+
self.groupBox_6.setCheckable(False)
|
|
44
|
+
|
|
45
|
+
self.gridLayout_2.addWidget(self.groupBox_6, 4, 0, 1, 1)
|
|
46
|
+
|
|
47
|
+
self.groupBox = QGroupBox(self.centralwidget)
|
|
48
|
+
self.groupBox.setObjectName(u"groupBox")
|
|
49
|
+
sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
|
|
50
|
+
sizePolicy.setHorizontalStretch(0)
|
|
51
|
+
sizePolicy.setVerticalStretch(0)
|
|
52
|
+
sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
|
|
53
|
+
self.groupBox.setSizePolicy(sizePolicy)
|
|
54
|
+
self.groupBox.setMinimumSize(QSize(301, 131))
|
|
55
|
+
self.groupBox.setMaximumSize(QSize(301, 131))
|
|
56
|
+
self.formLayout = QFormLayout(self.groupBox)
|
|
57
|
+
self.formLayout.setObjectName(u"formLayout")
|
|
58
|
+
self.label_3 = QLabel(self.groupBox)
|
|
59
|
+
self.label_3.setObjectName(u"label_3")
|
|
60
|
+
self.label_3.setMinimumSize(QSize(49, 20))
|
|
61
|
+
self.label_3.setMaximumSize(QSize(49, 20))
|
|
62
|
+
|
|
63
|
+
self.formLayout.setWidget(0, QFormLayout.LabelRole, self.label_3)
|
|
64
|
+
|
|
65
|
+
self.startTime = QLineEdit(self.groupBox)
|
|
66
|
+
self.startTime.setObjectName(u"startTime")
|
|
67
|
+
self.startTime.setMinimumSize(QSize(200, 20))
|
|
68
|
+
self.startTime.setMaximumSize(QSize(200, 20))
|
|
69
|
+
|
|
70
|
+
self.formLayout.setWidget(0, QFormLayout.FieldRole, self.startTime)
|
|
71
|
+
|
|
72
|
+
self.label_4 = QLabel(self.groupBox)
|
|
73
|
+
self.label_4.setObjectName(u"label_4")
|
|
74
|
+
self.label_4.setMinimumSize(QSize(43, 20))
|
|
75
|
+
self.label_4.setMaximumSize(QSize(43, 20))
|
|
76
|
+
|
|
77
|
+
self.formLayout.setWidget(1, QFormLayout.LabelRole, self.label_4)
|
|
78
|
+
|
|
79
|
+
self.endTime = QLineEdit(self.groupBox)
|
|
80
|
+
self.endTime.setObjectName(u"endTime")
|
|
81
|
+
self.endTime.setMinimumSize(QSize(200, 20))
|
|
82
|
+
self.endTime.setMaximumSize(QSize(200, 20))
|
|
83
|
+
|
|
84
|
+
self.formLayout.setWidget(1, QFormLayout.FieldRole, self.endTime)
|
|
85
|
+
|
|
86
|
+
self.setToLive = QPushButton(self.groupBox)
|
|
87
|
+
self.setToLive.setObjectName(u"setToLive")
|
|
88
|
+
self.setToLive.setMinimumSize(QSize(75, 23))
|
|
89
|
+
self.setToLive.setMaximumSize(QSize(75, 23))
|
|
90
|
+
|
|
91
|
+
self.formLayout.setWidget(2, QFormLayout.LabelRole, self.setToLive)
|
|
92
|
+
|
|
93
|
+
self.setToStatic = QPushButton(self.groupBox)
|
|
94
|
+
self.setToStatic.setObjectName(u"setToStatic")
|
|
95
|
+
self.setToStatic.setMinimumSize(QSize(200, 23))
|
|
96
|
+
self.setToStatic.setMaximumSize(QSize(200, 23))
|
|
97
|
+
|
|
98
|
+
self.formLayout.setWidget(2, QFormLayout.FieldRole, self.setToStatic)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
self.gridLayout_2.addWidget(self.groupBox, 3, 0, 1, 1)
|
|
102
|
+
|
|
103
|
+
self.groupBox_2 = QGroupBox(self.centralwidget)
|
|
104
|
+
self.groupBox_2.setObjectName(u"groupBox_2")
|
|
105
|
+
self.groupBox_2.setMinimumSize(QSize(291, 301))
|
|
106
|
+
self.groupBox_2.setMaximumSize(QSize(291, 301))
|
|
107
|
+
self.gridLayout = QGridLayout(self.groupBox_2)
|
|
108
|
+
self.gridLayout.setObjectName(u"gridLayout")
|
|
109
|
+
self.gridLayout.setSizeConstraint(QLayout.SetDefaultConstraint)
|
|
110
|
+
self.shownListWidget = QListWidget(self.groupBox_2)
|
|
111
|
+
self.shownListWidget.setObjectName(u"shownListWidget")
|
|
112
|
+
self.shownListWidget.setMinimumSize(QSize(101, 251))
|
|
113
|
+
self.shownListWidget.setMaximumSize(QSize(101, 251))
|
|
114
|
+
self.shownListWidget.setSelectionMode(QAbstractItemView.MultiSelection)
|
|
115
|
+
|
|
116
|
+
self.gridLayout.addWidget(self.shownListWidget, 0, 2, 5, 1)
|
|
117
|
+
|
|
118
|
+
self.hiddenListWidget = QListWidget(self.groupBox_2)
|
|
119
|
+
self.hiddenListWidget.setObjectName(u"hiddenListWidget")
|
|
120
|
+
self.hiddenListWidget.setMinimumSize(QSize(101, 251))
|
|
121
|
+
self.hiddenListWidget.setMaximumSize(QSize(101, 251))
|
|
122
|
+
self.hiddenListWidget.setSelectionMode(QAbstractItemView.MultiSelection)
|
|
123
|
+
|
|
124
|
+
self.gridLayout.addWidget(self.hiddenListWidget, 0, 0, 5, 1)
|
|
125
|
+
|
|
126
|
+
self.Shown = QLabel(self.groupBox_2)
|
|
127
|
+
self.Shown.setObjectName(u"Shown")
|
|
128
|
+
self.Shown.setMinimumSize(QSize(41, 20))
|
|
129
|
+
self.Shown.setMaximumSize(QSize(41, 20))
|
|
130
|
+
|
|
131
|
+
self.gridLayout.addWidget(self.Shown, 0, 1, 1, 1)
|
|
132
|
+
|
|
133
|
+
self.shownToHidden = QPushButton(self.groupBox_2)
|
|
134
|
+
self.shownToHidden.setObjectName(u"shownToHidden")
|
|
135
|
+
self.shownToHidden.setMinimumSize(QSize(31, 23))
|
|
136
|
+
self.shownToHidden.setMaximumSize(QSize(31, 23))
|
|
137
|
+
|
|
138
|
+
self.gridLayout.addWidget(self.shownToHidden, 3, 1, 1, 1)
|
|
139
|
+
|
|
140
|
+
self.Hidden = QLabel(self.groupBox_2)
|
|
141
|
+
self.Hidden.setObjectName(u"Hidden")
|
|
142
|
+
self.Hidden.setMinimumSize(QSize(41, 20))
|
|
143
|
+
self.Hidden.setMaximumSize(QSize(41, 20))
|
|
144
|
+
|
|
145
|
+
self.gridLayout.addWidget(self.Hidden, 4, 1, 1, 1)
|
|
146
|
+
|
|
147
|
+
self.hiddenToShown = QPushButton(self.groupBox_2)
|
|
148
|
+
self.hiddenToShown.setObjectName(u"hiddenToShown")
|
|
149
|
+
self.hiddenToShown.setMinimumSize(QSize(31, 23))
|
|
150
|
+
self.hiddenToShown.setMaximumSize(QSize(31, 23))
|
|
151
|
+
|
|
152
|
+
self.gridLayout.addWidget(self.hiddenToShown, 1, 1, 1, 1)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
self.gridLayout_2.addWidget(self.groupBox_2, 2, 0, 1, 1)
|
|
156
|
+
|
|
157
|
+
self.groupBox_4 = QGroupBox(self.centralwidget)
|
|
158
|
+
self.groupBox_4.setObjectName(u"groupBox_4")
|
|
159
|
+
sizePolicy.setHeightForWidth(self.groupBox_4.sizePolicy().hasHeightForWidth())
|
|
160
|
+
self.groupBox_4.setSizePolicy(sizePolicy)
|
|
161
|
+
self.groupBox_4.setMinimumSize(QSize(452, 121))
|
|
162
|
+
self.groupBox_4.setMaximumSize(QSize(452, 121))
|
|
163
|
+
self.groupBox_4.setFlat(False)
|
|
164
|
+
self.gridLayout_3 = QGridLayout(self.groupBox_4)
|
|
165
|
+
self.gridLayout_3.setObjectName(u"gridLayout_3")
|
|
166
|
+
self.clearWarningText = QPushButton(self.groupBox_4)
|
|
167
|
+
self.clearWarningText.setObjectName(u"clearWarningText")
|
|
168
|
+
self.clearWarningText.setMinimumSize(QSize(75, 23))
|
|
169
|
+
self.clearWarningText.setMaximumSize(QSize(75, 23))
|
|
170
|
+
|
|
171
|
+
self.gridLayout_3.addWidget(self.clearWarningText, 0, 1, 1, 1)
|
|
172
|
+
|
|
173
|
+
self.warningText = QPlainTextEdit(self.groupBox_4)
|
|
174
|
+
self.warningText.setObjectName(u"warningText")
|
|
175
|
+
self.warningText.setMinimumSize(QSize(351, 71))
|
|
176
|
+
self.warningText.setMaximumSize(QSize(351, 71))
|
|
177
|
+
self.warningText.setReadOnly(True)
|
|
178
|
+
|
|
179
|
+
self.gridLayout_3.addWidget(self.warningText, 0, 0, 1, 1)
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
self.gridLayout_2.addWidget(self.groupBox_4, 0, 1, 1, 1)
|
|
183
|
+
|
|
184
|
+
self.groupBox_5 = QGroupBox(self.centralwidget)
|
|
185
|
+
self.groupBox_5.setObjectName(u"groupBox_5")
|
|
186
|
+
self.groupBox_5.setMinimumSize(QSize(155, 53))
|
|
187
|
+
self.groupBox_5.setMaximumSize(QSize(301, 53))
|
|
188
|
+
self.gridLayout_4 = QGridLayout(self.groupBox_5)
|
|
189
|
+
self.gridLayout_4.setObjectName(u"gridLayout_4")
|
|
190
|
+
self.label_8 = QLabel(self.groupBox_5)
|
|
191
|
+
self.label_8.setObjectName(u"label_8")
|
|
192
|
+
|
|
193
|
+
self.gridLayout_4.addWidget(self.label_8, 0, 0, 1, 1)
|
|
194
|
+
|
|
195
|
+
self.windowLength = QSpinBox(self.groupBox_5)
|
|
196
|
+
self.windowLength.setObjectName(u"windowLength")
|
|
197
|
+
self.windowLength.setReadOnly(False)
|
|
198
|
+
self.windowLength.setKeyboardTracking(False)
|
|
199
|
+
self.windowLength.setMinimum(10)
|
|
200
|
+
self.windowLength.setMaximum(10000)
|
|
201
|
+
self.windowLength.setSingleStep(100)
|
|
202
|
+
self.windowLength.setDisplayIntegerBase(10)
|
|
203
|
+
|
|
204
|
+
self.gridLayout_4.addWidget(self.windowLength, 0, 1, 1, 1)
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
self.gridLayout_2.addWidget(self.groupBox_5, 1, 0, 1, 1)
|
|
208
|
+
|
|
209
|
+
self.label = QLabel(self.centralwidget)
|
|
210
|
+
self.label.setObjectName(u"label")
|
|
211
|
+
font = QFont()
|
|
212
|
+
font.setPointSize(16)
|
|
213
|
+
self.label.setFont(font)
|
|
214
|
+
self.label.setTextFormat(Qt.PlainText)
|
|
215
|
+
self.label.setScaledContents(False)
|
|
216
|
+
|
|
217
|
+
self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)
|
|
218
|
+
|
|
219
|
+
self.graphWidget = PlotWidget(self.centralwidget)
|
|
220
|
+
self.graphWidget.setObjectName(u"graphWidget")
|
|
221
|
+
sizePolicy1 = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
|
|
222
|
+
sizePolicy1.setHorizontalStretch(0)
|
|
223
|
+
sizePolicy1.setVerticalStretch(0)
|
|
224
|
+
sizePolicy1.setHeightForWidth(self.graphWidget.sizePolicy().hasHeightForWidth())
|
|
225
|
+
self.graphWidget.setSizePolicy(sizePolicy1)
|
|
226
|
+
self.graphWidget.setMinimumSize(QSize(511, 460))
|
|
227
|
+
self.graphWidget.setMouseTracking(False)
|
|
228
|
+
self.graphWidget.setLayoutDirection(Qt.LeftToRight)
|
|
229
|
+
self.graphWidget.setAutoFillBackground(False)
|
|
230
|
+
|
|
231
|
+
self.gridLayout_2.addWidget(self.graphWidget, 1, 1, 4, 2)
|
|
232
|
+
|
|
233
|
+
self.groupBox_3 = QGroupBox(self.centralwidget)
|
|
234
|
+
self.groupBox_3.setObjectName(u"groupBox_3")
|
|
235
|
+
self.systemStatus = QCheckBox(self.groupBox_3)
|
|
236
|
+
self.systemStatus.setObjectName(u"systemStatus")
|
|
237
|
+
self.systemStatus.setGeometry(QRect(40, 30, 241, 61))
|
|
238
|
+
font1 = QFont()
|
|
239
|
+
font1.setPointSize(20)
|
|
240
|
+
self.systemStatus.setFont(font1)
|
|
241
|
+
self.systemStatus.setStyleSheet(u"QCheckBox::indicator {\n"
|
|
242
|
+
" width:40px;\n"
|
|
243
|
+
" height:40px;\n"
|
|
244
|
+
" border-radius:22px;}\n"
|
|
245
|
+
"\n"
|
|
246
|
+
"QCheckBox::indicator:unchecked {\n"
|
|
247
|
+
" background-color:red;\n"
|
|
248
|
+
" border:2px solid white;}")
|
|
249
|
+
self.systemStatus.setCheckable(False)
|
|
250
|
+
|
|
251
|
+
self.gridLayout_2.addWidget(self.groupBox_3, 0, 2, 1, 1)
|
|
252
|
+
|
|
253
|
+
MainWindow.setCentralWidget(self.centralwidget)
|
|
254
|
+
self.statusbar = QStatusBar(MainWindow)
|
|
255
|
+
self.statusbar.setObjectName(u"statusbar")
|
|
256
|
+
MainWindow.setStatusBar(self.statusbar)
|
|
257
|
+
self.menuBar = QMenuBar(MainWindow)
|
|
258
|
+
self.menuBar.setObjectName(u"menuBar")
|
|
259
|
+
self.menuBar.setGeometry(QRect(0, 0, 1330, 21))
|
|
260
|
+
self.menuFile = QMenu(self.menuBar)
|
|
261
|
+
self.menuFile.setObjectName(u"menuFile")
|
|
262
|
+
MainWindow.setMenuBar(self.menuBar)
|
|
263
|
+
|
|
264
|
+
self.menuBar.addAction(self.menuFile.menuAction())
|
|
265
|
+
self.menuFile.addAction(self.loadFile)
|
|
266
|
+
|
|
267
|
+
self.retranslateUi(MainWindow)
|
|
268
|
+
|
|
269
|
+
QMetaObject.connectSlotsByName(MainWindow)
|
|
270
|
+
# setupUi
|
|
271
|
+
|
|
272
|
+
def retranslateUi(self, MainWindow):
|
|
273
|
+
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"pyMonitor", None))
|
|
274
|
+
self.loadFile.setText(QCoreApplication.translate("MainWindow", u"Load File", None))
|
|
275
|
+
self.groupBox_6.setTitle(QCoreApplication.translate("MainWindow", u"Status", None))
|
|
276
|
+
self.groupBox.setTitle(QCoreApplication.translate("MainWindow", u"Data Selection - format: yyyymmddHHMM", None))
|
|
277
|
+
self.label_3.setText(QCoreApplication.translate("MainWindow", u"Start Time", None))
|
|
278
|
+
self.startTime.setText(QCoreApplication.translate("MainWindow", u"yyyymmddHHMM", None))
|
|
279
|
+
self.label_4.setText(QCoreApplication.translate("MainWindow", u"End Time", None))
|
|
280
|
+
self.endTime.setText(QCoreApplication.translate("MainWindow", u"yyyymmddHHMM", None))
|
|
281
|
+
self.setToLive.setText(QCoreApplication.translate("MainWindow", u"Reset", None))
|
|
282
|
+
self.setToStatic.setText(QCoreApplication.translate("MainWindow", u"Ok", None))
|
|
283
|
+
self.groupBox_2.setTitle(QCoreApplication.translate("MainWindow", u"Monitoring Item", None))
|
|
284
|
+
self.Shown.setText(QCoreApplication.translate("MainWindow", u"Shown", None))
|
|
285
|
+
self.shownToHidden.setText(QCoreApplication.translate("MainWindow", u"<", None))
|
|
286
|
+
self.Hidden.setText(QCoreApplication.translate("MainWindow", u"Hidden", None))
|
|
287
|
+
self.hiddenToShown.setText(QCoreApplication.translate("MainWindow", u">", None))
|
|
288
|
+
self.groupBox_4.setTitle(QCoreApplication.translate("MainWindow", u"Warnings", None))
|
|
289
|
+
self.clearWarningText.setText(QCoreApplication.translate("MainWindow", u"Clear", None))
|
|
290
|
+
self.groupBox_5.setTitle(QCoreApplication.translate("MainWindow", u"Monitor Settings", None))
|
|
291
|
+
self.label_8.setText(QCoreApplication.translate("MainWindow", u"Window Length", None))
|
|
292
|
+
self.label.setText(QCoreApplication.translate("MainWindow", u"PyMonitor", None))
|
|
293
|
+
self.groupBox_3.setTitle("")
|
|
294
|
+
self.systemStatus.setText(QCoreApplication.translate("MainWindow", u"System Status", None))
|
|
295
|
+
self.menuFile.setTitle(QCoreApplication.translate("MainWindow", u"File", None))
|
|
296
|
+
# retranslateUi
|
|
297
|
+
|