def setup_bounds(self):
        if self.min in (None, -inf) and self.max in (None, inf):
            self._from_internal = lambda val: val
            _val  = self._val
        elif self.max in (None, inf):
            self._from_internal = lambda val: self.min - 1 + sqrt(val*val + 1)
            _val  = sqrt((self._val - self.min + 1)**2 - 1)
        elif self.min in (None, -inf):
            self._from_internal = lambda val: self.max + 1 - sqrt(val*val + 1)
            _val  = sqrt((self.max - self._val + 1)**2 - 1)
        else:
            self._from_internal = lambda val: self.min + (sin(val) + 1) * \
                                  (self.max - self.min) / 2
            _val  = arcsin(2*(self._val - self.min)/(self.max - self.min) - 1)
        return _val
Iterator constructor
dataset/ETHPy150Open xraypy/xraylarch/lib/fitting/parameter.py/Parameter.setup_bounds--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/ext/db/__init__.py/_QueryIterator.__init__