Skip to content
Snippets Groups Projects
Commit 3b50b615 authored by Mads M. Pedersen's avatar Mads M. Pedersen
Browse files

Reduce size of test file

parent 8cbb2037
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,7 @@ from __future__ import print_function ...@@ -8,6 +8,7 @@ from __future__ import print_function
from __future__ import division from __future__ import division
from __future__ import absolute_import from __future__ import absolute_import
from future import standard_library from future import standard_library
from wetb import gtsdf
standard_library.install_aliases() standard_library.install_aliases()
...@@ -26,8 +27,8 @@ class TestBearingDamage(unittest.TestCase): ...@@ -26,8 +27,8 @@ class TestBearingDamage(unittest.TestCase):
self.tfp = os.path.join(os.path.dirname(__file__), 'test_files/') self.tfp = os.path.join(os.path.dirname(__file__), 'test_files/')
def test_bearing_damage_swp(self): def test_bearing_damage_swp(self):
data = Hawc2io.ReadHawc2(self.tfp + "test_bearing_damage").ReadBinary((np.array([4, 26, 6, 32, 8, 38]) - 1).tolist()) data = Hawc2io.ReadHawc2(self.tfp + "test_bearing_damage").ReadBinary((np.array([1, 4, 2, 5, 3, 6]) ).tolist())
self.assertAlmostEqual(bearing_damage([(data[:, i], data[:, i + 1]) for i in [0, 2, 4]]), 7.755595081475002e+13) self.assertAlmostEqual(bearing_damage([(data[:, i], data[:, i + 1]) for i in [0,2,4]]), 7.755595081475002e+13)
if __name__ == "__main__": if __name__ == "__main__":
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment