Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/GCodeReader/RepRapFlavorParser.py')
-rw-r--r--plugins/GCodeReader/RepRapFlavorParser.py20
1 files changed, 13 insertions, 7 deletions
diff --git a/plugins/GCodeReader/RepRapFlavorParser.py b/plugins/GCodeReader/RepRapFlavorParser.py
index 2a24d16add..10b7b78587 100644
--- a/plugins/GCodeReader/RepRapFlavorParser.py
+++ b/plugins/GCodeReader/RepRapFlavorParser.py
@@ -3,8 +3,10 @@
from . import FlavorParser
-## This parser is intended to interpret the RepRap Firmware g-code flavor.
+
class RepRapFlavorParser(FlavorParser.FlavorParser):
+ """This parser is intended to interpret the RepRap Firmware g-code flavor."""
+
def __init__(self):
super().__init__()
@@ -17,16 +19,20 @@ class RepRapFlavorParser(FlavorParser.FlavorParser):
# Set relative extrusion mode
self._is_absolute_extrusion = False
- ## Set the absolute positioning
- # RepRapFlavor code G90 sets position of X, Y, Z to absolute
- # For absolute E, M82 is used
def _gCode90(self, position, params, path):
+ """Set the absolute positioning
+
+ RepRapFlavor code G90 sets position of X, Y, Z to absolute
+ For absolute E, M82 is used
+ """
self._is_absolute_positioning = True
return position
- ## Set the relative positioning
- # RepRapFlavor code G91 sets position of X, Y, Z to relative
- # For relative E, M83 is used
def _gCode91(self, position, params, path):
+ """Set the relative positioning
+
+ RepRapFlavor code G91 sets position of X, Y, Z to relative
+ For relative E, M83 is used
+ """
self._is_absolute_positioning = False
return position \ No newline at end of file