Skip to content

Commit

Permalink
Merge 8d970cb into a7f5f70
Browse files Browse the repository at this point in the history
  • Loading branch information
dernatsch committed Jan 22, 2019
2 parents a7f5f70 + 8d970cb commit 185ff69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/test_geometry.py
Expand Up @@ -30,7 +30,7 @@ def test_create_from_dict():

wing = geometry.Wing.create_from_dict(wd.wingdict)

del wing
assert wing is not None


def test_mac():
Expand Down
9 changes: 4 additions & 5 deletions tests/test_structuresection.py
Expand Up @@ -33,9 +33,8 @@ def test_structurecreation(airfoilcoords):
massana = MassAnalysis(secbase)
res = massana.massproperties

print(res)
assert np.abs(res[1] - 0.0116) < 0.0001
assert all(np.abs(res[0] - np.array([0.494, 0.0268])) < 0.0001)
assert np.isclose(res[1], 0.011681585464705432)
assert all(np.isclose(res[0], [0.49406408, 0.02683857]))
# remove I-spar and add boxspar
secbase.pop()
boxspar = section.BoxSpar(amat, 0.5, 0.2, 0.01, 0.01)
Expand All @@ -57,5 +56,5 @@ def test_structurecreation(airfoilcoords):
# analyse mass again
res = massana.massproperties

assert res is not None

assert np.isclose(res[1], 0.010542072442709407)
assert all(np.isclose(res[0], [0.48091987, 0.02773624]))

0 comments on commit 185ff69

Please sign in to comment.