This commit is contained in:
Samad Vakili 2020-06-09 14:39:17 +02:00
parent 2978cf72f7
commit d365cc9e12
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ class TestMechanics:
t = ['V','U'][np.random.randint(0,2)]
m = np.random.random()*10.0 -5.0
for i,v in enumerate(np.reshape(vectorized(F_vec,t,m),vectorized(F,t,m).shape)):
assert np.allcloase(single(F[i],t,m),v)
assert np.allclose(single(F[i],t,m),v)
@pytest.mark.parametrize('function',[mechanics.Cauchy,
mechanics.PK2,