This file is indexed.

/usr/share/pyshared/openopt/solvers/scipy_optim/scipy_fsolve_oo.py is in python-openopt 0.38+svn1589-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
from scipy.optimize import fsolve
from numpy import asfarray
from openopt.kernel.baseSolver import baseSolver


class scipy_fsolve(baseSolver):
    __name__ = 'scipy_fsolve'
    __license__ = "BSD"
    #__authors__ =
    #__alg__ = ""
    __info__ = """
    solves system of n non-linear equations with n variables.
    """

    def __init__(self):pass
    def __solver__(self, p):
        #xf = fsolve(p.f, p.x0, fprime=p.df, xtol = p.xtol, maxfev = p.maxFunEvals, warning = (p.iprint>=0))
        # "warning" has been removed in latest scipy version
        xf = fsolve(p.f, p.x0, fprime=p.df, xtol = p.xtol, maxfev = p.maxFunEvals)
        p.istop = 1000
        p.iterfcn(xf)