We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f54ff0e commit 81acde2Copy full SHA for 81acde2
src/microstructpy/examples/grain_neighborhoods.py
@@ -44,7 +44,7 @@
44
dx = np.insert(np.diff(x_perim), 0, 0)
45
dy = np.insert(np.diff(y_perim), 0, 0)
46
ds = np.sqrt(dx * dx + dy * dy)
47
-arc_len = scipy.integrate.cumtrapz(ds, x=t_perim, initial=0)
+arc_len = scipy.integrate.cumulative_trapezoid(ds, x=t_perim, initial=0)
48
eq_spaced = arc_len[-1] * np.arange(n) / n
49
x_pts = np.interp(eq_spaced, arc_len, x_perim)
50
y_pts = np.interp(eq_spaced, arc_len, y_perim)
0 commit comments