Skip to content

Commit 5f521da

Browse files
committed
raise deprecation when old function imported
1 parent 26b2fef commit 5f521da

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

LoopStructural/utils/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
get_strike_vector,
2424
get_vectors,
2525
strikedip2vector,
26+
plungeazimuth2vector,
2627
azimuthplunge2vector,
2728
normal_vector_to_strike_and_dip,
2829
rotate,

LoopStructural/utils/maths.py

+8
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ def strikedip2vector(strike: NumericInput, dip: NumericInput) -> np.ndarray:
2828
vec /= np.linalg.norm(vec, axis=1)[:, None]
2929
return vec
3030

31+
def azimuthplunge2vector(
32+
plunge: NumericInput,
33+
azimuth: NumericInput,
34+
degrees: bool = True,
35+
) -> np.ndarray:
36+
raise DeprecationWarning(
37+
"azimuthplunge2vector is deprecated, use plungeazimuth2vector instead"
38+
)
3139

3240
def plungeazimuth2vector(
3341
plunge: NumericInput,

0 commit comments

Comments
 (0)