From 686766a2f96c9cb8fb8d053fd794efa2741c4d6e Mon Sep 17 00:00:00 2001 From: Leonid Kostrykin Date: Tue, 16 Jul 2024 11:03:18 +0000 Subject: [PATCH] Debug dsm.py --- superdsm/dsm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])