1
1
"""
2
- Unit tests for pylump .py
2
+ Unit tests for pyLump .py
3
3
"""
4
4
5
5
import numpy as np
9
9
myPath = os .path .dirname (os .path .abspath (__file__ ))
10
10
sys .path .insert (0 , myPath + '/../' )
11
11
12
- import pylump
12
+ import pyLump
13
13
14
14
15
15
def test_matrices ():
16
16
# both:
17
- model = pylump .Model (3 , 1 , 1 , 1 , boundaries = "both" )
17
+ model = pyLump .Model (3 , 1 , 1 , 1 , boundaries = "both" )
18
18
19
19
M = np .array ([[1 , 0 , 0 ],
20
20
[0 , 1 , 0 ],
@@ -33,7 +33,7 @@ def test_matrices():
33
33
np .testing .assert_equal (model .get_damping_matrix (), C )
34
34
35
35
# left
36
- model = pylump .Model (3 , 1 , 1 , 1 , boundaries = "left" )
36
+ model = pyLump .Model (3 , 1 , 1 , 1 , boundaries = "left" )
37
37
38
38
M = np .array ([[1 , 0 , 0 ],
39
39
[0 , 1 , 0 ],
@@ -52,7 +52,7 @@ def test_matrices():
52
52
np .testing .assert_equal (model .get_damping_matrix (), C )
53
53
54
54
# right:
55
- model = pylump .Model (3 , 1 , 1 , 1 , boundaries = "right" )
55
+ model = pyLump .Model (3 , 1 , 1 , 1 , boundaries = "right" )
56
56
57
57
M = np .array ([[1 , 0 , 0 ],
58
58
[0 , 1 , 0 ],
@@ -71,7 +71,7 @@ def test_matrices():
71
71
np .testing .assert_equal (model .get_damping_matrix (), C )
72
72
73
73
# free
74
- model = pylump .Model (3 , 1 , 1 , 1 , boundaries = "free" )
74
+ model = pyLump .Model (3 , 1 , 1 , 1 , boundaries = "free" )
75
75
76
76
M = np .array ([[1 , 0 , 0 ],
77
77
[0 , 1 , 0 ],
@@ -91,7 +91,7 @@ def test_matrices():
91
91
92
92
93
93
def test_FRF ():
94
- model = pylump .Model (3 , 1 , 1 , 1 , boundaries = "both" )
94
+ model = pyLump .Model (3 , 1 , 1 , 1 , boundaries = "both" )
95
95
96
96
M = np .array ([[1 , 0 , 0 ],
97
97
[0 , 1 , 0 ],
@@ -120,7 +120,7 @@ def test_FRF():
120
120
121
121
122
122
def test_h ():
123
- model = pylump .Model (3 , 1 , 1 , 1 , boundaries = "both" )
123
+ model = pyLump .Model (3 , 1 , 1 , 1 , boundaries = "both" )
124
124
125
125
M = np .array ([[1 , 0 , 0 ],
126
126
[0 , 1 , 0 ],
@@ -149,7 +149,7 @@ def test_h():
149
149
150
150
151
151
def test_response ():
152
- model = pylump .Model (3 , 0.1 , 10 , 0.01 , boundaries = "both" )
152
+ model = pyLump .Model (3 , 0.1 , 10 , 0.01 , boundaries = "both" )
153
153
154
154
M = np .array ([[0.1 , 0 , 0 ],
155
155
[0 , 0.1 , 0 ],
0 commit comments