def getRotationBySplitLine(splitLine):
 return complex(splitLine[1].replace('(', '').replace(')', ''))

def getRotationBySplitLine ( splitLine ) : return complex ( splitLine [ 1 ] . replace ( '(' , '' ) . replace ( ')' , '' ) )
get the complex rotation from the split gcode line .