MCPcopy Create free account
hub / github.com/FullControlXYZ/fullcontrol / remove_terms_from_gcode

Function remove_terms_from_gcode

lab/fullcontrol/transform.py:30–32  ·  view source on GitHub ↗
(gcode, term_characters)

Source from the content-addressed store, hash-verified

28 import re
29
30 def remove_terms_from_gcode(gcode, term_characters):
31 pattern = r'[' + ''.join(term_characters) + r']\d*\.?\d+ ?'
32 return re.sub(pattern, '', gcode)
33
34 if controls is None: controls = GcodeControls()
35

Callers 1

transformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected