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 committed Nov 22, 2023
1 parent 30db13b commit 5fd45c6
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 5fd45c6

Please sign in to comment.