Skip to content

Commit

Permalink
remove erroneous return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Van Gorkom committed May 17, 2017
1 parent a9099d3 commit 1cb191d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion poppy/zernike.py
Expand Up @@ -731,7 +731,6 @@ def arbitrary_basis(aperture, nterms=15, rho=None, theta=None):
# precompute zernikes on oversized array
Z = np.zeros((nterms + 1,) + padded_shape)
Z[1:] = zernike_basis(nterms=nterms, npix=npix, rho=rho, theta=theta, outside=0.0)
return Z
# slice down to original aperture array size
Z = Z[:,padding[0]:padded_shape[0]-padding[0],
padding[1]:padded_shape[1]-padding[1]]
Expand Down

0 comments on commit 1cb191d

Please sign in to comment.