Skip to content

Commit eb4dea4

Browse files
committed
increase tolerance for cross platform compat
1 parent 0f1d864 commit eb4dea4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_orthonormal.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ def test_get_orthonormal_basis(Phi):
2121

2222
# Check if the basis vectors are orthogonal to each other
2323
assert jnp.allclose(
24-
jnp.dot(basis_vectors, basis_vectors.T), jnp.eye(basis_vectors.shape[0])
24+
jnp.dot(basis_vectors, basis_vectors.T),
25+
jnp.eye(basis_vectors.shape[0]),
26+
atol=1e-6,
2527
), f"<A, A.T> should be I, got {jnp.dot(basis_vectors, basis_vectors.T)}"
2628

2729
# Check if bases is orthogonal to Phi

0 commit comments

Comments
 (0)