Skip to content

Commit 47425e9

Browse files
committed
Fix last failing test
1 parent f5eb0eb commit 47425e9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_util/test_cholesky_util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
These are so crucial and annoying to debug that they need their own test set.
44
"""
55

6-
from probdiffeq.backend import func, linalg, np, random, testing
6+
from probdiffeq.backend import func, linalg, np, random, testing, tree
77
from probdiffeq.util import cholesky_util
88

99
_SHAPES = ([(4, 3), (3, 3), (4, 4)], [(2, 3), (3, 3), (2, 2)])
@@ -147,9 +147,9 @@ def triu_via_qr_r(x, y, z):
147147
assert testing.allclose(expected, received)
148148

149149

150-
def _tree_is_free_of_nans(tree):
150+
def _tree_is_free_of_nans(pytree):
151151
def contains_no_nan(x):
152152
return np.logical_not(np.any(np.isnan(x)))
153153

154-
tree_contains_no_nan = tree.tree_map(contains_no_nan, tree)
154+
tree_contains_no_nan = tree.tree_map(contains_no_nan, pytree)
155155
return tree.tree_all(tree_contains_no_nan)

0 commit comments

Comments
 (0)