Skip to content

Commit a966df2

Browse files
committed
Remove deprecation warning from pytest np.trapz -> np.trapezoid
1 parent 765f02f commit a966df2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manim/utils/space_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ def shoelace(x_y: Point2D_Array) -> float:
658658
"""
659659
x = x_y[:, 0]
660660
y = x_y[:, 1]
661-
val: float = np.trapz(y, x)
661+
val: float = np.trapezoid(y, x)
662662
return val
663663

664664

0 commit comments

Comments
 (0)