Skip to content
Snippets Groups Projects
Commit 3da0a8b2 authored by Antariksh Dicholkar's avatar Antariksh Dicholkar
Browse files

fixed initialization error for interpolated envelopes

parent 9f95a525
No related branches found
No related tags found
1 merge request!45BUGFIX: fixed initialization error for interpolated envelopes
...@@ -281,8 +281,8 @@ def compute_envelope(cloud, int_env=False, Nx=300): ...@@ -281,8 +281,8 @@ def compute_envelope(cloud, int_env=False, Nx=300):
vertices, ivertices = closed_contour(cloud) vertices, ivertices = closed_contour(cloud)
# interpolate to a fixed location of equally spaced vertices # interpolate to a fixed location of equally spaced vertices
vert_int = np.ndarray(vertices.shape)
if int_env: if int_env:
vert_int = np.ndarray((Nx+1, cloud.shape[1]))
_,_,_,vert_int[:,0:2] = int_envelope(vertices[:,0], vertices[:,1], Nx) _,_,_,vert_int[:,0:2] = int_envelope(vertices[:,0], vertices[:,1], Nx)
for i in range(2, cloud.shape[1]): for i in range(2, cloud.shape[1]):
_,_,_,extra = int_envelope(vertices[:,0], vertices[:,i], Nx) _,_,_,extra = int_envelope(vertices[:,0], vertices[:,i], Nx)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment