Did I find the right examples for you? yes no

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)
Floating point operation failed.

src/s/c/scikit-learn-0.14.1/sklearn/covariance/graph_lasso_.py   scikit-learn(Download)
                break
            if not np.isfinite(cost) and i > 0:
                raise FloatingPointError('Non SPD result: the system is '
                                         'too ill-conditioned for this solver')
        else:

src/w/e/weblogo-3.3/corebio/secstruc/stride.py   weblogo(Download)
            self.psi = float(res_line[52:59].strip())
        except FloatingPointError:
            raise FloatingPointError("Can't float phi, psi, or area")
        except KeyError:
            raise KeyError("Can't find three letter code in dictionary")

src/f/i/FiPy-3.1/fipy/steppers/stepper.py   FiPy(Download)
    def _lowerBound(self, dt):
        dt = max(dt, self.dtMin)
        if self.elapsed + dt == self.elapsed:
            raise FloatingPointError("step size underflow: %g + %g == %g" % (self.elapsed, dt, self.elapsed))
 

src/t/r/trueskill-0.4.1/trueskill/__init__.py   trueskill(Download)
    else:
        msg = 'Cannot calculate correctly, set backend to "mpmath"'
    return FloatingPointError(msg)
 
 

src/t/r/trueskill-HEAD/trueskill/__init__.py   trueskill(Download)
    else:
        msg = 'Cannot calculate correctly, set backend to "mpmath"'
    return FloatingPointError(msg)
 
 

src/p/i/picomath-HEAD/python/log_one_plus_x.py   picomath(Download)
def log_one_plus_x(x):
    if x <= -1.0:
        raise FloatingPointError("argument must be > -1")
 
    if abs(x) > 1e-4:

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/eventlet-0.9.14/eventlet/saranwrap.py   hortonworks-sandbox(Download)
def raise_standard_error():
    raise FloatingPointError()
 
# test function to make sure print doesn't break the wrapper
def print_string(str):

src/i/n/indra.ipc-1.0/indra/ipc/saranwrap.py   indra.ipc(Download)
def raise_standard_error():
    raise FloatingPointError()
 
# test function to make sure print doesn't break the wrapper
def print_string(str):

src/e/v/eventlet-0.14.0/eventlet/saranwrap.py   eventlet(Download)
def raise_standard_error():
    raise FloatingPointError()
 
# test function to make sure print doesn't break the wrapper
def print_string(str):

src/s/y/Sypy-HEAD/interpreter/test/test_exceptcomp.py   Sypy(Download)
    def test_deepsubclass(self):
        try:
            raise FloatingPointError("1.2r")
        except Exception:
            pass

  1 | 2  Next