Skip to content
Snippets Groups Projects
Commit 25bb03e9 authored by Kien Le's avatar Kien Le
Browse files

Remove commented code.

Remove commented code in calendar_dialog.py, channel_prefer_dialog.py,
mainwindow.py, time_power_squareddialog.py, and db_gui_superclass.py.
parent b3ac070e
No related branches found
No related tags found
1 merge request!13Make names of UI code pep8 compliant
Pipeline #1711 failed with stage
in 1 minute and 50 seconds
......@@ -8,11 +8,3 @@ class CalendarDialog(QtWidgets.QDialog, Ui_CalendarDialog):
def __init__(self, parent=None):
super().__init__(parent)
self.setupUi(self)
# Connect the "selectionChanged" signal from the QCalendar
# This lets the user select a date using either the mouse, or
# arrow keys on the keyboard.
# self.calendarWidget.selectionChanged.connect(self.onDatePicked)
# date = self.calendarWidget.selectedDate()
# doy = date.dayOfYear()
# self.julianDateLineEdit.setText(str(doy))
......@@ -190,15 +190,6 @@ class ChannelPreferDialog(QtWidgets.QWidget):
QtWidgets.QMessageBox.information(
self, "Select data type", msg)
return False
# # check IDs
# if self.id_widget.text().strip() != '':
# msg = ("The selected row's IDs will be overwritten.\n"
# "Do you want to continue?")
# result = QtWidgets.QMessageBox.question(
# self, "Confirmation", msg,
# QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No)
# if result == QtWidgets.QMessageBox.No:
# return False
return True
@QtCore.Slot()
......
......@@ -63,15 +63,6 @@ class Ui_DBInfoDialog(QtWidgets.QWidget):
"WHITE - Editable. "
"Text: BLACK - Saved; RED - Not saved")
# TODO: add question mark button to give instruction
# if self.table_name == 'parameters':
# instruction += (
# "\nValueColors is requested for multiColorDots plotType."
# "Value from low to high"
# "\nThe format for less than or equal value pair is: "
# "value:color"
# "\nThe format for greater than value pair is: "
# "+value:color with "
# "color=R,Y,G,M,C.\n Ex: 2.3:C|+4:M")
main_layout.addWidget(QtWidgets.QLabel(instruction))
......
......@@ -39,9 +39,6 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
self.waveformDlg = WaveformDialog(self)
self.TPSDlg = TimePowerSquaredDialog(self)
# def resizeEvent(self, event):
# self.plottingWidget.init_size()
@QtCore.Slot()
def openDataType(self):
win = DataTypeDialog(self)
......@@ -116,9 +113,8 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
"""
print(f'Opening {item.text()}')
# Do something with the Path object,
# TODO: Do something with the Path object,
# i.e., path.open(), or path.iterdir() ...
# path = item.filePath
@QtCore.Slot()
def changeCurrentDirectory(self):
......@@ -218,7 +214,6 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
selKey = do.selectedKey
# do.createPlottingData(startTm, endTm)
# mainPlot
soh_data = deepcopy(do.SOHData[selKey])
......
......@@ -46,7 +46,6 @@ class TimePowerSquaredWidget(plottingWidget.PlottingWidget):
self.each_day5_min_list = get_eachDay5MinList(self.min_x, self.max_x)
for chanID in self.plotting_data:
ax = self.get_zoom_data(self.plotting_data[chanID], chanID)
# ax.chan = chanID
self.axes.append(ax)
self.set_legend()
# Set view size fit with the given data
......@@ -163,7 +162,6 @@ class TimePowerSquaredWidget(plottingWidget.PlottingWidget):
[self.plotting_l, plot_b, self.plotting_w, plot_h],
picker=True
)
# ax.axis('off')
ax.spines['right'].set_visible(False)
ax.spines['left'].set_visible(False)
ax.xaxis.grid(True, which='major',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment