Skip to content

Commit b31822d

Browse files
committed
Run pre-commit
1 parent 009a929 commit b31822d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

validphys2/src/validphys/n3fit_data.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,13 @@ def setupfit_fitting_covmat(dataset_inputs_fitting_covmat, diagonal_basis=True):
424424
eig_vals, v = np.linalg.eigh(cormat) # cormat = V @ diag(eig_vals) @ V.T
425425
u = np.einsum("i, ij -> ij", sigma, v)
426426
rec_covmat = u @ np.diag(eig_vals) @ u.T
427-
np.testing.assert_allclose(covmat, rec_covmat, rtol=1e-4, atol=1e-5, err_msg="Diagonalisation failed to reproduce original covmat")
427+
np.testing.assert_allclose(
428+
covmat,
429+
rec_covmat,
430+
rtol=1e-4,
431+
atol=1e-5,
432+
err_msg="Diagonalisation failed to reproduce original covmat",
433+
)
428434

429435
diagonal_rotation = np.einsum("ij, j -> ij", v.T, sigma_inv)
430436

0 commit comments

Comments
 (0)