(gcode, term_characters)
| 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 |