Skip to content

Commit 65e3e99

Browse files
committed
lukas suggestions
1 parent 4f3eb71 commit 65e3e99

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

pyGCodeDecode/gcode_interpreter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ def get_values(self, t: float, output_unit_system: str = None) -> Tuple[List[flo
577577

578578
return tmp_vel, tmp_pos
579579

580-
def get_width(self, t: float, extrusion_h: float, filament_dia: float = None) -> float:
580+
def get_width(self, t: float, extrusion_h: float, filament_dia: Optional[float] = None) -> float:
581581
"""Return the extrusion width for a certain extrusion height at time.
582582
583583
Args:

pyGCodeDecode/state_generator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""State generator module."""
22

3+
import math
34
import pathlib
45
import re
56
from typing import List, Match
@@ -210,8 +211,6 @@ def dict_list_traveler(line_dict_list: List[dict], initial_machine_setup: dict)
210211
"""
211212

212213
def apply_extrusion(line_dict: dict, virtual_machine: dict, command: str) -> dict:
213-
import math
214-
215214
e_value = line_dict[command]["E"]
216215

217216
# volumetric to length conversion

0 commit comments

Comments
 (0)