From b9e087d1fdcfca5331b8e68605fa0af0db7f5a2c Mon Sep 17 00:00:00 2001 From: Faraphel Date: Mon, 20 Feb 2023 22:23:57 +0100 Subject: [PATCH] fixed a bug where the x and y where inverted in the board class --- source/utils/copy_array_offset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/utils/copy_array_offset.py b/source/utils/copy_array_offset.py index 5f0ad46..46e0ce4 100644 --- a/source/utils/copy_array_offset.py +++ b/source/utils/copy_array_offset.py @@ -10,6 +10,6 @@ def copy_array_offset(src: np.array, dst: np.array, offset: Point2D) -> None: :dst: destination array :offset: the offset where to copy the array """ - row, column = offset + column, row = offset width, height = src.shape dst[row:row + width, column:column + height] = src