New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix arbitrary_basis clipping aperture #222
Comments
Comment by mperrin Overall looks good. I made a couple comments in-line on the code. If you're feeling ambitious, would you be willing to put together a unit test for this function that demonstrates it works as desired? The coveralls check reminded me that we don't have any test code for |
Comment by kvangorkom The latest commits should hopefully address all your comments! For unit tests, I just duplicated the tests that were being performed for the other bases--one check for the normalization and one for orthogonality. A few things I noticed that probably deserve their own issues :
ought to be
correct? Otherwise, RMS values > 1 sneak on by. (The latter is how I formulated it in
|
Comment by mperrin Nice work. For your suggested other issues those all look like good catches, thanks very much. I'll spawn a new issue and fix those myself. |
Comment by mperrin This all looks good, so I'm going to go ahead and merge. Thanks much @kvangorkom ! |
Issue by kvangorkom
Wednesday May 17, 2017 at 18:33 GMT
Originally opened as mperrin/poppy#222
Addresses #221.
The implementation here varies slightly from what I did over in #221. Rather than pad the aperture array, I'm calculating what the new array size should be, passing this to
zernike_basis
asnpix
, and then cutting the circular basis down before the aperture is cut out of it and the basis re-orthonormalized.To handle the optional
rho
andtheta
arguments, I'm padding these arrays with nonsense values. I think this shouldn't have any negative consequences, but I am a bit uncomfortable with handling them this way.(Also adds a check that the aperture is passed in as a square array.)
kvangorkom included the following code: https://github.com/mperrin/poppy/pull/222/commits
The text was updated successfully, but these errors were encountered: