Skip to content

Commit

Permalink
symbolic parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsferreira committed Mar 17, 2024
1 parent c859342 commit faf0ed6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_symbolic_rules.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import logging

import numpy as np
import pytest
import sympy as sym
Expand Down Expand Up @@ -59,8 +61,8 @@ def test_symbolic_subs_in_batch(handler, def_gradients):
# get first c from def_gradients
c = K.right_cauchy_green(def_gradients)
# subs c_tensor with c values
c_tensor_subs = handler.substitute(c_tensor, c)
assert np.allclose(c_tensor_subs, c)
c_all = [handler.substitute(c_tensor, cc) for cc in c]
logging.info(c_all)


# voigt notation
Expand Down

0 comments on commit faf0ed6

Please sign in to comment.