forked from M-Labs/thermostat
variable name change
This commit is contained in:
parent
91a2cfb73e
commit
8cd1a70f50
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user