mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
Fix some mistakes indicated by PyCharm's linting
This commit is contained in:
parent
59fa73448a
commit
c875252b53
2 changed files with 5 additions and 3 deletions
|
@ -162,6 +162,8 @@ class PauseAtHeight(Script):
|
||||||
# use offset to calculate the current height: <current_height> = <current_z> - <layer_0_z>
|
# use offset to calculate the current height: <current_height> = <current_z> - <layer_0_z>
|
||||||
layer_0_z = 0
|
layer_0_z = 0
|
||||||
current_z = 0
|
current_z = 0
|
||||||
|
current_height = 0
|
||||||
|
current_layer = 0
|
||||||
current_extrusion_f = 0
|
current_extrusion_f = 0
|
||||||
got_first_g_cmd_on_layer_0 = False
|
got_first_g_cmd_on_layer_0 = False
|
||||||
current_t = 0 #Tracks the current extruder for tracking the target temperature.
|
current_t = 0 #Tracks the current extruder for tracking the target temperature.
|
||||||
|
@ -263,8 +265,8 @@ class PauseAtHeight(Script):
|
||||||
# the nozzle)
|
# the nozzle)
|
||||||
x, y = self.getNextXY(layer)
|
x, y = self.getNextXY(layer)
|
||||||
prev_lines = prev_layer.split("\n")
|
prev_lines = prev_layer.split("\n")
|
||||||
for line in prev_lines:
|
for lin in prev_lines:
|
||||||
new_e = self.getValue(line, 'E', current_e)
|
new_e = self.getValue(lin, "E", current_e)
|
||||||
if new_e != current_e:
|
if new_e != current_e:
|
||||||
current_e = new_e
|
current_e = new_e
|
||||||
break
|
break
|
||||||
|
|
|
@ -328,7 +328,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
|
||||||
|
|
||||||
def _setFirmwareName(self, name):
|
def _setFirmwareName(self, name):
|
||||||
new_name = re.findall(r"FIRMWARE_NAME:(.*);", str(name))
|
new_name = re.findall(r"FIRMWARE_NAME:(.*);", str(name))
|
||||||
if new_name:
|
if new_name:
|
||||||
self._firmware_name = new_name[0]
|
self._firmware_name = new_name[0]
|
||||||
Logger.log("i", "USB output device Firmware name: %s", self._firmware_name)
|
Logger.log("i", "USB output device Firmware name: %s", self._firmware_name)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue