variable name change

This commit is contained in:
atse 2023-10-20 10:51:34 +08:00
parent 91a2cfb73e
commit 8cd1a70f50
1 changed files with 5 additions and 5 deletions

View File

@ -511,11 +511,11 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
self.plot_settings.setMenu(self.plot_menu)
@pyqtSlot(list)
def set_limits_warning(self, limits_zeroed: list):
def set_limits_warning(self, channels_zeroed_limits: list):
channel_disabled = [False, False]
report_str = "The following output limit(s) are set to zero:\n"
for ch, zeroed_limits in enumerate(limits_zeroed):
for ch, zeroed_limits in enumerate(channels_zeroed_limits):
if {'max_i_pos', 'max_i_neg'}.issubset(zeroed_limits):
report_str += "Max Cooling Current, Max Heating Current"
channel_disabled[ch] = True
@ -813,7 +813,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
@pyqtSlot(list)
def update_pwm(self, pwm_data):
channel_zeroed_limits = [set() for i in range(2)]
channels_zeroed_limits = [set() for i in range(2)]
for pwm_params in pwm_data:
channel = pwm_params["channel"]
@ -824,9 +824,9 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
for limit in "max_i_pos", "max_i_neg", "max_v":
if pwm_params[limit]["value"] == 0.0:
channel_zeroed_limits[channel].add(limit)
channels_zeroed_limits[channel].add(limit)
self.set_limits_warning(channel_zeroed_limits)
self.set_limits_warning(channels_zeroed_limits)
@pyqtSlot(list)
def update_postfilter(self, postfilter_data):