'Set the minimum and maximum values of a parameter from a tuple'

@bounds.setter
def bounds(self, value):

    if (self._model is not None):
        (_min, _max) = value
        if (_min is not None):
            if (not isinstance(_min, numbers.Number)):
                raise TypeError(u'Min    value    must    be    a    number')
            _min = float(_min)
        if (_max is not None):
            if (not isinstance(_max, numbers.Number)):
                raise TypeError(u'Max    value    must    be    a    number')
            _max = float(_max)
        bounds = self._model._constraints.setdefault(u'bounds', {})
        self._model._constraints[u'bounds'][self._name] = (_min, _max)
    else:
        raise AttributeError(u"can't    set    attribute    'bounds'    on    Parameter    definition")
