Skip to content

Commit

Permalink
fix stickmodel test
Browse files Browse the repository at this point in the history
  • Loading branch information
helo9 committed Sep 5, 2019
1 parent 9ef2055 commit 97adc9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_stickmodell.py
Expand Up @@ -180,6 +180,7 @@ def test_2spar():
from wingstructure.structure.stickmodel import internalloads2spar

loads = np.array([
[0, 0, 1, 0, 1, 0],
[0, 0, 1, 0, 1, 0]
], dtype=float)

Expand All @@ -192,5 +193,5 @@ def test_2spar():

val = np.sqrt(2)/2

assert np.isclose(tloads,
[val, 0, val, val, 0, -val]).all()
assert np.isclose(tloads[0,:],
[0, val, -val, 0, val, val]).all()

0 comments on commit 97adc9f

Please sign in to comment.