'Set axis units (reprap.UNITS_STEPS/reprap.UNITS_MM/reprap.UNITS_INCHES)'

def setUnits(self, units):

    if (self.stepsPerMM == None):
        raise _RepRapError('Only    reprap.UNITS_STEPS    can    be    used    without    specifying    steps    per    mm.    use    setStepsPerMM().')
    else:
        self.units = units
