pbrod/numdifftools

View on GitHub

Showing 591 of 591 total issues

Too many instance attributes (15/7)
Open

class MinStepGenerator(object):

Used when class has too many instance attributes, try to reduce this to get a simpler (and so easier to use) class.

Argument name bs doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern)
Open

def _extrapolate(bs, rs, m):
Severity: Info
Found in src/numdifftools/fornberg.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Argument name bn doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern)
Open

    def _get_m1_m2(self, bn, m):
Severity: Info
Found in src/numdifftools/fornberg.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Variable name m2 doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern)
Open

        m2 = np.max(np.abs(bnc[m // 2:]))
Severity: Info
Found in src/numdifftools/fornberg.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Class 'Bicomplex' inherits from object, can be safely removed from bases in python3
Open

class Bicomplex(object):
Severity: Info
Found in src/numdifftools/multicomplex.py by pylint

Used when a class inherit from object, which under python3 is implicit, hence can be safely removed from bases.

Variable name z2 doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern)
Open

        z1, z2 = self.z1, self.z2
Severity: Info
Found in src/numdifftools/multicomplex.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Missing function or method docstring
Open

    def imag2(self):
Severity: Info
Found in src/numdifftools/multicomplex.py by pylint

Used when a function or method has no docstring. Some special methods like init do not require a docstring.

Variable name z1 doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern)
Open

        z1, z2 = other.z1, other.z2
Severity: Info
Found in src/numdifftools/multicomplex.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Consider using '{central: 3, forward: 2, backward: 2}' instead of a call to 'dict'.
Open

            order2 * dict(central=3, forward=2, backward=2).get(method, 0))

Emitted when using dict() to create a dictionary instead of a literal '{ ... }'. The literal is faster as it avoids an additional function call.

Consider using '{central: 2, central2: 2, complex: complex_divisior, multicomplex: 2, ... }' instead of a call to 'dict'.
Open

        return dict(central=2,

Emitted when using dict() to create a dictionary instead of a literal '{ ... }'. The literal is faster as it avoids an additional function call.

Argument name x0 doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern)
Open

def fd_weights(x, x0=0, n=1):
Severity: Info
Found in src/numdifftools/fornberg.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

TODO: see if this can be vectorized, but usually dim is small
Open

    # TODO: see if this can be vectorized, but usually dim is small
Severity: Minor
Found in src/numdifftools/nd_statsmodels.py by pylint

Used when a warning note as FIXME or XXX is detected.

Argument name z2 doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern)
Open

    def __init__(self, z1, z2, dtype=np.complex128):
Severity: Info
Found in src/numdifftools/multicomplex.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Missing function or method docstring
Open

    def conjugate(self):
Severity: Info
Found in src/numdifftools/multicomplex.py by pylint

Used when a function or method has no docstring. Some special methods like init do not require a docstring.

Missing function or method docstring
Open

    def cos(self):
Severity: Info
Found in src/numdifftools/multicomplex.py by pylint

Used when a function or method has no docstring. Some special methods like init do not require a docstring.

Missing function or method docstring
Open

    def tanh(self):
Severity: Info
Found in src/numdifftools/multicomplex.py by pylint

Used when a function or method has no docstring. Some special methods like init do not require a docstring.

Unable to import 'numpy'
Open

from numpy import (cos, sin, tan, cosh, sinh, tanh,
Severity: Critical
Found in src/numdifftools/example_functions.py by pylint

Used when pylint has been unable to import a module.

Redefining built-in 'type'
Open

    def __exit__(self, type, value, traceback):
Severity: Minor
Found in src/numdifftools/profiletools.py by pylint

Used when a variable or function override a built-in.

Attribute name A doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern)
Open

        self.A = np.dot(A.T, A)
Severity: Info
Found in src/numdifftools/run_benchmark.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Variable name A doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern)
Open

        A = np.arange(n * n, dtype=float).reshape((n, n))
Severity: Info
Found in src/numdifftools/run_benchmark.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Severity
Category
Status
Source
Language