Skip to content
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

Fixes to zernike code and tests #223

Closed
mperrin opened this issue Aug 27, 2018 · 1 comment
Closed

Fixes to zernike code and tests #223

mperrin opened this issue Aug 27, 2018 · 1 comment

Comments

@mperrin
Copy link
Collaborator

mperrin commented Aug 27, 2018

Issue by mperrin
Tuesday May 23, 2017 at 18:38 GMT
Originally opened as mperrin/poppy#223


Issues noticed by @kvangorkom and originally reported in #222:

A few things I noticed that probably deserve their own issues :

  1. I'm not sure that test_zernikes_rms is performing the check quite correctly. The line
assert 1.0 - rms < 0.001, "Zernike(j={}) has RMS value of {}".format(j, rms)

ought to be

assert abs(1.0 - rms) < 0.001, "Zernike(j={}) has RMS value of {}".format(j, rms)

correct? Otherwise, RMS values > 1 sneak on by. (The latter is how I formulated it in test_arbitrary_basis_rms)

  1. I'm not sure the different combinations of rho, theta being None are handled correctly (theta=None with rho defined hits an array broadcasting error, rho=None with theta defined runs successfully with unexpected results). I get the same behaviors with zernike_basis as with arbitrary_basis, so I left it alone for now.
  2. hexike_basis ignores the outside argument.
@mperrin
Copy link
Collaborator Author

mperrin commented Aug 27, 2018

Comment by mperrin
Monday Jul 10, 2017 at 23:07 GMT


Fixed by #224

@mperrin mperrin closed this as completed Aug 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant