Skip to content

Commit 81acde2

Browse files
authored
rename cumtrapz
1 parent f54ff0e commit 81acde2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/microstructpy/examples/grain_neighborhoods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
dx = np.insert(np.diff(x_perim), 0, 0)
4545
dy = np.insert(np.diff(y_perim), 0, 0)
4646
ds = np.sqrt(dx * dx + dy * dy)
47-
arc_len = scipy.integrate.cumtrapz(ds, x=t_perim, initial=0)
47+
arc_len = scipy.integrate.cumulative_trapezoid(ds, x=t_perim, initial=0)
4848
eq_spaced = arc_len[-1] * np.arange(n) / n
4949
x_pts = np.interp(eq_spaced, arc_len, x_perim)
5050
y_pts = np.interp(eq_spaced, arc_len, y_perim)

0 commit comments

Comments
 (0)