mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Remove a number of unused imports
This commit is contained in:
parent
fe27da5e8a
commit
2e9dca71ce
18 changed files with 10 additions and 26 deletions
|
@ -10,10 +10,10 @@ WARNING This script has never been tested with several extruders
|
|||
from ..Script import Script
|
||||
import numpy as np
|
||||
from UM.Logger import Logger
|
||||
from UM.Application import Application
|
||||
import re
|
||||
from cura.Settings.ExtruderManager import ExtruderManager
|
||||
|
||||
|
||||
def _getValue(line, key, default=None):
|
||||
"""
|
||||
Convenience function that finds the value in a line of g-code.
|
||||
|
@ -30,6 +30,7 @@ def _getValue(line, key, default=None):
|
|||
return default
|
||||
return float(number.group(0))
|
||||
|
||||
|
||||
class GCodeStep():
|
||||
"""
|
||||
Class to store the current value of each G_Code parameter
|
||||
|
@ -85,7 +86,7 @@ class GCodeStep():
|
|||
|
||||
|
||||
# Execution part of the stretch plugin
|
||||
class Stretcher():
|
||||
class Stretcher:
|
||||
"""
|
||||
Execution part of the stretch algorithm
|
||||
"""
|
||||
|
@ -207,7 +208,6 @@ class Stretcher():
|
|||
return False
|
||||
return True # New sequence
|
||||
|
||||
|
||||
def processLayer(self, layer_steps):
|
||||
"""
|
||||
Computes the new coordinates of g-code steps
|
||||
|
@ -291,7 +291,6 @@ class Stretcher():
|
|||
else:
|
||||
self.layergcode = self.layergcode + layer_steps[i].comment + "\n"
|
||||
|
||||
|
||||
def workOnSequence(self, orig_seq, modif_seq):
|
||||
"""
|
||||
Computes new coordinates for a sequence
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue