MainCode/adalm1000_logger.py aktualisiert
File "/home/jan/adalm1000/bin/adalm1000_logger.py", line 869
if (abs(current_ylim[0] - min_voltage) > 0.1 or abs(current_ylim[1] - max_voltage) > 0.1:
^
SyntaxError: invalid syntax
Fixed (D)
This commit is contained in:
parent
75be821b4b
commit
e854fb904f
@ -866,7 +866,7 @@ class BatteryTester(QMainWindow):
|
||||
min_voltage = max(0, min(self.voltage_data) - voltage_padding)
|
||||
max_voltage = min(5.0, max(self.voltage_data) + voltage_padding)
|
||||
current_ylim = self.ax.get_ylim()
|
||||
if (abs(current_ylim[0] - min_voltage) > 0.1 or abs(current_ylim[1] - max_voltage) > 0.1:
|
||||
if (abs(current_ylim[0] - min_voltage) > 0.1 or abs(current_ylim[1] - max_voltage) > 0.1):
|
||||
self.ax.set_ylim(min_voltage, max_voltage)
|
||||
|
||||
current_padding = 0.05
|
||||
@ -874,7 +874,7 @@ class BatteryTester(QMainWindow):
|
||||
min_current = max(-0.25, min(self.current_data) - current_padding)
|
||||
max_current = min(0.25, max(self.current_data) + current_padding)
|
||||
current_ylim2 = self.ax2.get_ylim()
|
||||
if (abs(current_ylim2[0] - min_current) > 0.02 or abs(current_ylim2[1] - max_current) > 0.02:
|
||||
if (abs(current_ylim2[0] - min_current) > 0.02 or abs(current_ylim2[1] - max_current) > 0.02):
|
||||
self.ax2.set_ylim(min_current, max_current)
|
||||
|
||||
@pyqtSlot(str)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user