MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / parse_out_axes

Function parse_out_axes

src/ext/makerbot_driver/Gcode/Utils.py:104–112  ·  view source on GitHub ↗

Given a list of codes, returns a list of all present axes @param list codes: Codes parsed out of the gcode command @return list: List of axes in codes

(codes)

Source from the content-addressed store, hash-verified

102
103
104def parse_out_axes(codes):
105 """Given a list of codes, returns a list of all present axes
106
107 @param list codes: Codes parsed out of the gcode command
108 @return list: List of axes in codes
109 """
110 axesCodes = 'XYZAB'
111 parsedAxes = set(axesCodes) & set(codes)
112 return list(sorted(parsedAxes))
113
114
115def variable_substitute(line, environment):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected