1
- from LoopStructural .utils import strikedip2vector , azimuthplunge2vector
1
+ from LoopStructural .utils import strikedip2vector , plungeazimuth2vector
2
2
import numpy as np
3
3
4
4
@@ -19,18 +19,18 @@ def test_strikedip2vector():
19
19
20
20
21
21
# import numpy as np
22
- # from LoopStructural.utils.maths import azimuthplunge2vector
22
+ # from LoopStructural.utils.maths import plungeazimuth2vector
23
23
24
24
25
- def test_azimuthplunge2vector_single_values ():
25
+ def test_plungeazimuth2vector_single_values ():
26
26
plunge = 0
27
27
plunge_dir = 90
28
28
expected_result = np .array ([[1 , 0 , 0 ]])
29
- result = azimuthplunge2vector (plunge , plunge_dir )
29
+ result = plungeazimuth2vector (plunge , plunge_dir )
30
30
assert np .allclose (result , expected_result )
31
31
32
32
33
- def test_azimuthplunge2vector_array_values ():
33
+ def test_plungeazimuth2vector_array_values ():
34
34
plunge = [0 , 90 , 0 ]
35
35
plunge_dir = [90 , 90 , 0 ]
36
36
expected_result = np .array (
@@ -40,12 +40,12 @@ def test_azimuthplunge2vector_array_values():
40
40
[0 , 1 , 0 ],
41
41
]
42
42
)
43
- result = azimuthplunge2vector (plunge , plunge_dir )
43
+ result = plungeazimuth2vector (plunge , plunge_dir )
44
44
assert np .allclose (result , expected_result )
45
45
46
46
47
- def test_azimuthplunge2vector_empty_arrays ():
47
+ def test_plungeazimuth2vector_empty_arrays ():
48
48
plunge = []
49
49
plunge_dir = []
50
- result = azimuthplunge2vector (plunge , plunge_dir )
50
+ result = plungeazimuth2vector (plunge , plunge_dir )
51
51
assert result .shape [0 ] == 0
0 commit comments