diff --git a/modopt/opt/algorithms.py b/modopt/opt/algorithms.py index 8fddf48d..ea8026d8 100644 --- a/modopt/opt/algorithms.py +++ b/modopt/opt/algorithms.py @@ -686,8 +686,8 @@ def __init__(self, x, grad, prox_list, cost='auto', gamma_param=1.0, self._x_old = np.copy(x) # Set the algorithm operators - (self._check_operator(operator) for operator in [grad, cost] - + prox_list) + (self._check_operator(operator) for operator in [grad, cost] + + prox_list) self._grad = grad self._prox_list = np.array(prox_list) self._linear = linear @@ -908,7 +908,7 @@ class Condat(SetUp): """ def __init__(self, x, y, grad, prox, prox_dual, linear=None, cost='auto', - reweight=None, rho=0.5, sigma=1.0, tau=1.0, rho_update=None, + reweight=None, rho=0.5, sigma=1.0, tau=1.0, rho_update=None, sigma_update=None, tau_update=None, auto_iterate=True, max_iter=150, n_rewightings=1, metric_call_period=5, metrics={}): diff --git a/modopt/tests/test_base.py b/modopt/tests/test_base.py index ed49f062..25305062 100644 --- a/modopt/tests/test_base.py +++ b/modopt/tests/test_base.py @@ -42,7 +42,7 @@ def test_rotate_stack(self): npt.assert_array_equal(np_adjust.rotate_stack(self.data2), np.array([[[8, 7, 6], [5, 4, 3], [2, 1, 0]], [[17, 16, 15], [14, 13, 12], - [11, 10, 9]]]), + [11, 10, 9]]]), err_msg='Incorrect stack rotation') def test_pad2d(self): diff --git a/modopt/tests/test_signal.py b/modopt/tests/test_signal.py index eb45c122..2fa10125 100644 --- a/modopt/tests/test_signal.py +++ b/modopt/tests/test_signal.py @@ -143,9 +143,9 @@ def setUp(self): [-0.21816724, -0.28316221], [-0.28507434, -0.17275339], [-0.35198144, -0.06234457], - [-0.41888854, 0.04806424], - [-0.48579564, 0.15847306], - [-0.55270274, 0.26888188]]), + [-0.41888854, 0.04806424], + [-0.48579564, 0.15847306], + [-0.55270274, 0.26888188]]), np.array([42.23492742, 1.10041151]), np.array([[-0.67608034, -0.73682791], [0.73682791, -0.67608034]])) diff --git a/setup.cfg b/setup.cfg index 0b01e8bd..6284f904 100644 --- a/setup.cfg +++ b/setup.cfg @@ -11,4 +11,4 @@ description-file = README.rst [tool:pytest] addopts = --verbose --pep8 --cov=modopt testpaths = modopt -pep8ignore = E402 +pep8ignore = E121 E126 E402