pbrod/numdifftools

View on GitHub

Showing 591 of 591 total issues

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.

Missing function or method docstring
Open

def derivative_sin(n):

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

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

class EpsAlg(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.

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.

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.

Missing function or method docstring
Open

def derivative_cos(n):

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

Unable to import 'scipy'
Open

from scipy import linalg
Severity: Critical
Found in src/numdifftools/extrapolation.py by pylint

Used when pylint has been unable to import a module.

Unable to import 'numpy'
Open

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

Used when pylint has been unable to import a module.

Consider using Python 3 style super() without arguments
Open

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

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

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

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

Missing function or method docstring
Open

def plot_runtimes(run_time_objects, problem_sizes, symbols):
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 compute_hessians(hessian_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.

Final newline missing
Open

""".format(CURRENT_YEAR)
Severity: Info
Found in src/numdifftools/license.py by pylint

Used when the last line in a file is missing a newline.

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 log1p(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 'scipy.special'
Open

import scipy.special as special
Severity: Critical
Found in src/numdifftools/example_functions.py by pylint

Used when pylint has been unable to import a module.

Missing function or method docstring
Open

def darcsin(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_log10(n):

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

Consider using '{derivative: 'Jacobian', 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.

Severity
Category
Status
Source
Language