def setDelta(self, delta):
    if ((delta > 1) or (delta < 0)):
        raise ValueError('depreciation rate must be in between 0 and 1')
    self._delta = delta
def setDelta(self, delta):
    if ((delta > 1) or (delta < 0)):
        raise ValueError('depreciation rate must be in between 0 and 1')
    self._delta = delta