Skip to content

Commit faf0ed6

Browse files
committed
symbolic parsing
1 parent c859342 commit faf0ed6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_symbolic_rules.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import logging
2+
13
import numpy as np
24
import pytest
35
import sympy as sym
@@ -59,8 +61,8 @@ def test_symbolic_subs_in_batch(handler, def_gradients):
5961
# get first c from def_gradients
6062
c = K.right_cauchy_green(def_gradients)
6163
# subs c_tensor with c values
62-
c_tensor_subs = handler.substitute(c_tensor, c)
63-
assert np.allclose(c_tensor_subs, c)
64+
c_all = [handler.substitute(c_tensor, cc) for cc in c]
65+
logging.info(c_all)
6466

6567

6668
# voigt notation

0 commit comments

Comments
 (0)