diff --git a/leap/rk/__init__.py b/leap/rk/__init__.py index 0cdb4f3bee3695d9a8598f2ca306db094c963be2..e11393c76814bb51feec3c45d5caa2fb24159b71 100644 --- a/leap/rk/__init__.py +++ b/leap/rk/__init__.py @@ -770,7 +770,8 @@ class LSRK4MethodBuilder(MethodBuilder): rhs_val = var("rhs_val") with CodeBuilder("primary") as cb: - for a, b, c in self.coeffs: + # https://github.com/PyCQA/pylint/issues/3387 + for a, b, c in self.coeffs: # pylint: disable=not-an-iterable cb(rhs_val, rhs_func(t=t + c*dt, **{comp_id: state})) cb(residual, a*residual + dt*rhs_val) new_state_expr = state + b * residual diff --git a/test/test_step_matrix.py b/test/test_step_matrix.py index 4f3f9650288652de3a10547c91fca42c3b1efe56..50a64ea68ee3c02d858ddabfdc319d09ec7ac3e3 100755 --- a/test/test_step_matrix.py +++ b/test/test_step_matrix.py @@ -197,7 +197,7 @@ def test_step_matrix_sparse(): sparse=True) assert mat.shape == (3, 3) - assert mat.indices == [(0, 0), (1, 1), (2, 2)] + assert mat.indices == [(0, 0), (1, 1), (2, 2)] # pylint: disable=no-member true_mat = np.eye(3, dtype=np.object) + dt * J assert (mat.data == np.diag(true_mat)).all()