Skip to content

Commit

Permalink
Merge pull request spacetelescope#569 from mfeldt/patch-1
Browse files Browse the repository at this point in the history
Update zernike.py
  • Loading branch information
BradleySappington authored May 31, 2023
2 parents f31dbba + eedfde0 commit 132ea76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poppy/zernike.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ def arbitrary_basis(aperture, nterms=15, rho=None, theta=None, outside=np.nan):
"only square aperture arrays are supported"

# any pixels with zero or NaN in the aperture are outside the area
apmask = (xp.isfinite(aperture) & (aperture > 0))
apmask = (xp.isfinite(xp.asarray(aperture)) & (xp.asarray(aperture) > 0))
apmask_float = xp.asarray(apmask, float)
A = apmask.sum()

Expand Down

0 comments on commit 132ea76

Please sign in to comment.