Skip to content

Commit

Permalink
pybamm-team#3443 Fix expression tree Jax evaluator test
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal authored and js1tr3 committed Aug 12, 2024
1 parent d127e45 commit 1930e8a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def test_evaluator_jax(self):
expr = pybamm.exp(a * b)
evaluator = pybamm.EvaluatorJax(expr)
result = evaluator(t=None, y=np.array([[2], [3]]))
self.assertEqual(result, np.exp(6))
np.testing.assert_array_almost_equal(result, np.exp(6), decimal=15)

# test a constant expression
expr = pybamm.Scalar(2) * pybamm.Scalar(3)
Expand Down

0 comments on commit 1930e8a

Please sign in to comment.