From dc9ece7edf1826657885ac70840e454e6831f198 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 10 Jan 2025 03:44:40 +0000 Subject: [PATCH] chore: Files formated --- mpqp/tools/maths.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mpqp/tools/maths.py b/mpqp/tools/maths.py index 630b2694..04e1ec7f 100644 --- a/mpqp/tools/maths.py +++ b/mpqp/tools/maths.py @@ -153,7 +153,9 @@ def is_diagonal(matrix: Matrix): i, j = matrix.shape if i != j: - raise ValueError("The input matrix is not square. Dimensions = (" + i + ", " + j + ").") + raise ValueError( + "The input matrix is not square. Dimensions = (" + i + ", " + j + ")." + ) test = matrix.reshape(-1)[:-1].reshape(i - 1, j + 1) return ~np.any(test[:, 1:])