Browse Source

Rename process() to parse()

Because we need to execute several other processing steps as well.
This parse function for G0 and G1 now needs to initialise the state in the same way as how Block is initialised in CuraEngine.

Contributes to issue CURA-5561.
Ghostkeeper 6 years ago
parent
commit
5bf90df6be
1 changed files with 2 additions and 2 deletions
  1. 2 2
      50_inst_per_sec.py

+ 2 - 2
50_inst_per_sec.py

@@ -194,7 +194,7 @@ class Command:
 
     ##  Estimates the execution time of this command and calculates the state
     #   after this command is executed.
-    def process(self) -> None:
+    def parse(self) -> None:
         line = self._cmd_str.strip()
         if not line:
             self._is_empty = True
@@ -381,7 +381,7 @@ class CommandBuffer:
         cmd_count = 0
         for idx, line in enumerate(self._all_lines):
             cmd = Command(line, previous_state)
-            cmd.process()
+            cmd.parse()
             self._all_commands.append(cmd)
             previous_state = cmd.get_after_state()