pbrod/numdifftools

View on GitHub

Showing 591 of 591 total issues

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

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

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

Too many arguments (6/5)
Open

    def __init__(self, fun, step=None, method='above', order=4, full_output=False, **options):
Severity: Info
Found in src/numdifftools/limits.py by pylint

Used when a function or method takes too many arguments.

Missing function or method docstring
Open

    def sech(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 derivative_arcsinh(n):

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

Consider using Python 3 style super() without arguments
Open

        super(Derivative, self).__init__(step=step,  **options)
Severity: Info
Found in src/numdifftools/core.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.

Missing function or method docstring
Open

def main(problem_sizes=(4, 8, 16, 32, 64, 96)):
Severity: Info
Found in src/numdifftools/run_benchmark.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 derivative_sqrt(n):

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

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

        sx = sqrt(x)

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

Consider using Python 3 style super() without arguments
Open

        return super(Jacobian, self).__call__(np.atleast_1d(x), *args, **kwds)
Severity: Info
Found in src/numdifftools/core.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.

Consider using '{derivative: 'Gradient', extra_parameter: n order : int, optionaln defines the order of the error term in the Taylor approximation used.n For 'central' and 'complex' methods, it must be an even number., ... }' instead of a call to 'dict'.
Open

    __doc__ = _CMN_DOC % dict(
Severity: Info
Found in src/numdifftools/core.py by pylint

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

Too many local variables (18/15)
Open

def _compute_benchmark(functions, problem_sizes):
Severity: Info
Found in src/numdifftools/run_benchmark.py by pylint

Used when a function or method has too many local variables.

Unable to import 'numpy'
Open

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

Used when pylint has been unable to import a module.

Consider using Python 3 style super() without arguments
Open

        super(Limit, self).__init__(step=step,  **options)
Severity: Info
Found in src/numdifftools/limits.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 z2 doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern)
Open

        z2 = np.sinh(self.z1) * np.sin(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 sqrt(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 log10(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 dddarcsin(x):

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 derivative_tanh(n):

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

Unused log2 imported from numpy
Open

from numpy import (cos, sin, tan, cosh, sinh, tanh,

Used when an imported module or variable is not used.

Too many arguments (7/5)
Open

def _plot(plot, problem_sizes, objects, symbols, ylabel='', loc=2, logx=False):
Severity: Info
Found in src/numdifftools/run_benchmark.py by pylint

Used when a function or method takes too many arguments.

Severity
Category
Status
Source
Language