diff --git a/superdsm/dsm.py b/superdsm/dsm.py index b194d2f..dade085 100644 --- a/superdsm/dsm.py +++ b/superdsm/dsm.py @@ -342,7 +342,7 @@ def grad(self, params): assert np.allclose( (np.ones((1, np.prod(self.w.shape))) @ self.smooth_mat.multiply(term1_sparse)).reshape(-1), self.smooth_mat.multiply(term1_sparse).sum(axis=0).reshape(-1), - atol=1e-8 + atol=1e-16 ) grad2 += self.alpha * (params.ΞΎ / self.term2) grad = np.concatenate([grad, grad2])