From 529b69f6d648a0db45cf36d5d8d16e2d1de0122c Mon Sep 17 00:00:00 2001 From: Joost van Zwieten Date: Fri, 19 Apr 2024 11:33:10 +0200 Subject: [PATCH] replace Tuple(items).eval with compile(items) --- tests/test_evaluable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_evaluable.py b/tests/test_evaluable.py index f05065f23..a6a2d7213 100644 --- a/tests/test_evaluable.py +++ b/tests/test_evaluable.py @@ -132,7 +132,7 @@ def test_eig(self): if self.actual.dtype == float: for ax1, ax2 in self.pairs: items = self.actual, *evaluable.eig(self.actual, axes=(ax1, ax2)) - A, L, V = evaluable.Tuple(items).simplified.eval(**dict(zip(self.arg_names, self.arg_values))) + A, L, V = evaluable.compile(items, simplify=True, stats=False)(**dict(zip(self.arg_names, self.arg_values))) self.assertArrayAlmostEqual(decimal=11, actual=(numpy.expand_dims(V, ax2) * numpy.expand_dims(L, ax2+1).swapaxes(ax1, ax2+1)).sum(ax2+1), desired=(numpy.expand_dims(A, ax2) * numpy.expand_dims(V, ax2+1).swapaxes(ax1, ax2+1)).sum(ax2+1))