From 7d7927e821362083a195b208d76657e62054e8ba Mon Sep 17 00:00:00 2001 From: Samad Vakili Date: Wed, 10 Jun 2020 13:22:57 +0200 Subject: [PATCH] reshaped F transpose error --- python/tests/test_mechanics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/tests/test_mechanics.py b/python/tests/test_mechanics.py index 4f12ecf9b..0ae433254 100644 --- a/python/tests/test_mechanics.py +++ b/python/tests/test_mechanics.py @@ -62,10 +62,10 @@ def strain_tensor(F,t,m): F_ = F.reshape(1,3,3) if t == 'V': - B = np.matmul(F_,mechanics.transpose(F_)) + B = np.matmul(F_,F_[1].T) w,n = np.linalg.eigh(B) elif t == 'U': - C = np.matmul(mechanics.transpose(F_),F_) + C = np.matmul(F_[1].T,F_) w,n = np.linalg.eigh(C) if m > 0.0: