Showing 591 of 591 total issues
Missing function or method docstring Open
def run_gradient_and_hessian_benchmarks(gradient_funs, hessian_funs,
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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)):
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
Used when pylint has been unable to import a module.
Unable to import 'numpy' Open
import numpy as np
- Read upRead up
- Exclude checks
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)
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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)
- Read upRead up
- Exclude checks
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)
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
Used when pylint has been unable to import a module.
Missing function or method docstring Open
def darcsin(x):
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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(
- Read upRead up
- Exclude checks
Emitted when using dict() to create a dictionary instead of a literal '{ ... }'. The literal is faster as it avoids an additional function call.