From 5bf90df6beb411790c3faaedbc842d59f1aa3064 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 3 Sep 2018 16:08:12 +0200 Subject: [PATCH] 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. --- 50_inst_per_sec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/50_inst_per_sec.py b/50_inst_per_sec.py index ae51af7454..36aa2c09d7 100644 --- a/50_inst_per_sec.py +++ b/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()