pbrod/numdifftools

View on GitHub

Showing 591 of 591 total issues

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

            m1, m2 = self._get_m1_m2(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...).

Constant name _tiny_name doesn't conform to '(([A-Z_][A-Z0-9_]*)|(__.*__))$' pattern ('(([A-Z_][A-Z0-9_]*)|(__.*__))$' pattern)
Open

_tiny_name = 'tiny' if np.__version__ < '1.22' else 'smallest_normal'
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 c_atan2(x, y):
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 logaddexp2(self, other):
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 = np.cosh(self.z2) * np.sin(self.z1)
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...).

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 = np.cosh(self.z1) * np.cos(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 main():

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

Consider using '{multicomplex: 0, complex: 0.0}' instead of a call to 'dict'.
Open

            int(n - 1) * dict(multicomplex=0, complex=0.0).get(method, 1.3) +

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 Python 3 style super() without arguments
Open

        super(MaxStepGenerator,

Emitted when calling the super() builtin with the current class and instance. On Python 3 these arguments are the default and they can be omitted.

Import outside toplevel (cProfile)
Open

    import cProfile

Used when an import statement is used anywhere other than the module toplevel. Move this import to the top of the file.

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

def _get_best_taylor_coefficients(bs, rs, m, max_m1m2):
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...).

Import outside toplevel (pstats)
Open

    import pstats

Used when an import statement is used anywhere other than the module toplevel. Move this import to the top of the file.

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

            bn = np.fft.fft(fun(_circle(z0, r, m))) / 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...).

Unable to import 'numpy'
Open

import numpy as np
Severity: Critical
Found in src/numdifftools/nd_statsmodels.py by pylint

Used when pylint has been unable to import a module.

Too many arguments (6/5)
Open

def approx_fprime(x, f, epsilon=None, args=(), kwargs=None, centered=True):
Severity: Info
Found in src/numdifftools/nd_statsmodels.py by pylint

Used when a function or method takes too many arguments.

Consider using Python 3 style super() without arguments
Open

        return super(Gradient, self).__call__(np.atleast_1d(x).ravel(),
Severity: Info
Found in src/numdifftools/nd_statsmodels.py by pylint

Emitted when calling the super() builtin with the current class and instance. On Python 3 these arguments are the default and they can be omitted.

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

    c, d = np.real(y), np.imag(y)
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...).

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 = 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...).

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 = 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...).

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...).

Severity
Category
Status
Source
Language