pbrod/numdifftools

View on GitHub

Showing 591 of 591 total issues

Missing function or method docstring
Open

def compute_gradients(gradient_funs, problem_sizes):
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 run_gradient_and_hessian_benchmarks(gradient_funs, hessian_funs,
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.

Too few public methods (1/2)
Open

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

Used when class has too few public methods, so be sure it's really worth it.

Missing function or method docstring
Open

    def coth(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.

Unnecessarily calls dunder method __pow__. Use ** operator or pow built-in function.
Open

        return self.__pow__(0.5)
Severity: Info
Found in src/numdifftools/multicomplex.py by pylint

Used when a dunder method is manually called instead of using the corresponding function/method/operator.

Missing function or method docstring
Open

    def log2(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 arccosh(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.

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 _arg_c(z1, 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 arg_c(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.

Too many public methods (44/20)
Open

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

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

Consider using '{cosh: derivative_cosh, cos: derivative_cos, sin: derivative_sin, ... }' instead of a call to 'dict'.
Open

    f_dic = dict(cosh=derivative_cosh,

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 '{derivative: 'Hessian diagonal', extra_parameter: 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.

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

        t1 = timer()
Severity: Info
Found in src/numdifftools/profiletools.py by pylint

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

Unable to import 'matplotlib.pyplot'
Open

import matplotlib.pyplot as plt
Severity: Critical
Found in src/numdifftools/run_benchmark.py by pylint

Used when pylint has been unable to import a module.

Formatting a regular string which could be a f-string
Open

__doc__ = """
Severity: Info
Found in src/numdifftools/license.py by pylint

Used when we detect a string that is being formatted with format() or % which could potentially be a f-string. The use of f-strings is preferred. Requires Python 3.6 and py-version >= 3.6.

Consider using Python 3 style super() without arguments
Open

        super(CStepGenerator,
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.

Too few public methods (1/2)
Open

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

Used when class has too few public methods, so be sure it's really worth it.

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

        J = Bicomplex(0, 1)
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 = 1 + 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...).

Use 'from scipy import special' instead
Open

import scipy.special as special

Emitted when a submodule of a package is imported and aliased with the same name, e.g., instead of import concurrent.futures as futures use from concurrent import futures.

Severity
Category
Status
Source
Language