Skip to content
Snippets Groups Projects
Commit 081c14ae authored by David Verelst's avatar David Verelst
Browse files

Merge branch 'interp_envelope_fix' into 'master'

BUGFIX: fixed initialization error for interpolated envelopes

See merge request toolbox/WindEnergyToolbox!45
parents 9f95a525 3da0a8b2
No related branches found
No related tags found
1 merge request!45BUGFIX: fixed initialization error for interpolated envelopes
Pipeline #
......@@ -281,8 +281,8 @@ def compute_envelope(cloud, int_env=False, Nx=300):
vertices, ivertices = closed_contour(cloud)
# interpolate to a fixed location of equally spaced vertices
vert_int = np.ndarray(vertices.shape)
if int_env:
vert_int = np.ndarray((Nx+1, cloud.shape[1]))
_,_,_,vert_int[:,0:2] = int_envelope(vertices[:,0], vertices[:,1], Nx)
for i in range(2, cloud.shape[1]):
_,_,_,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