From 67e46ff246e0673f3fdd0301f7103b2d230dd710 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Fleuret?= Date: Thu, 1 Aug 2024 11:15:23 +0200 Subject: [PATCH] Update. --- grids.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/grids.py b/grids.py index 3343066..52db2b5 100755 --- a/grids.py +++ b/grids.py @@ -953,7 +953,7 @@ class Grids(problem.Problem): assert i[q] != ai and j[q] != aj for Z in [X, f_X]: - for k in range(1, nb_rec): + for k in range(0, nb_rec): Z[i[k] : i[k] + delta, j[k] : j[k] + delta] = c[k] # Z[i[0] + delta // 2 - 1, j[0] + delta // 2 - 1] = c[0] # Z[i[0] + delta // 2 - 1, j[0] + delta // 2 + 1] = c[0] @@ -962,8 +962,8 @@ class Grids(problem.Problem): # f_X[i[0] : i[0] + delta, j[0] : j[0] + delta] = c[q] - # f_X[i[0] + delta // 2, j[0] + delta // 2] = c[q] - f_X[i[0] : i[0] + delta, j[0] : j[0] + delta] = c[q] + f_X[i[0] + delta // 2, j[0] + delta // 2] = c[q] + # f_X[i[0] : i[0] + delta, j[0] : j[0] + delta] = c[q] ii, jj = ( i[0] + delta // 2 + (i[q] - ai).sign().long(), -- 2.39.5