Skip to content

Commit 7828a9f

Browse files
author
Moreno
committed
Depreciated function trapz needs to be reused due to uncompatibility with CI tests
1 parent 33edd4b commit 7828a9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

famodel/anchors/anchors_famodel/capacity_torpedo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ def PileShaftSurface(length, diameter1, diameter2):
102102
Su_vals = f_Su(z_vals)
103103
alpha_vals = np.array([f_alpha(z) for z in z_vals])
104104

105-
Su_total = np.trapezoid(Su_vals, z_vals)
106-
Su_moment = np.trapezoid(z_vals*Su_vals, z_vals)
105+
Su_total = np.trapz(Su_vals, z_vals)
106+
Su_moment = np.trapz(z_vals*Su_vals, z_vals)
107107
print("xxxxxxxxxxxxxxxxxxxxxxxxx")
108108
Su_av_z = Su_total/dz_seg
109109
print(f"Su_av_z = {Su_av_z:.2f} Pa")

0 commit comments

Comments
 (0)