Skip to content
Snippets Groups Projects
Commit e634de90 authored by Mateus Harano's avatar Mateus Harano
Browse files

Corrected dependencies issues

parent 0a422767
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
# e. Geometric deviation
from abc import ABC, abstractmethod
from .parser import Command, Gcode
from .parser import GcodeCommand, Gcode
class Defect(ABC):
def __init__(self, incidence_ratio:float, intensity:float) -> None:
......@@ -23,11 +23,11 @@ class Defect(ABC):
self.intensity = intensity
@abstractmethod
def apply(self, command:Command) -> None:
def apply(self, command:GcodeCommand) -> None:
pass
class OverExtrusion(Defect):
def apply(self, command:Command) -> None:
def apply(self, command:GcodeCommand) -> None:
if not (type(command) == float or type(command) == float): return
last_coords = command.get_last_position()
original_extrusion = command.e - last_coords['e']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment