-
Notifications
You must be signed in to change notification settings - Fork 72
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
zernike.opd_expand_nonorthonormal
and zernike.opd_expand_segments
give different results for the same inputs
#263
Comments
@kjbrooks, could you send me or post here a bit more of the notebook setting up your problem case? In particular the above code samples appear to be using a |
In the case above that you mention, |
Aha, I didn’t read the above code closely enough. But I think there may be a problem in having the basis variable defined after the get_basis function! Try flipping the order of those. |
I think I have identified at least part of the issue. In creating a simplified notebook I discovered that my results (while still different between I have also moved the |
The default iterations stuff bothers me; I don't know why it needs to be so high. Need to figure out a way to make this a more automatic process, where for instance you give it a desired tolerance and it automatically iterates until it achieves that tolerance. I'll take a look at the notebook, thanks. |
And here is grab_opd_info.py since that is necessary to run the notebook. |
In trying to reconstruct a JWST OPD, I found that using the new
zernike.opd_expand_segments
, I was getting strange results for segments C3 and C4 (behind the diagonal struts) that did not match the reconstruction that I was getting when I usedzernike.opd_expand_nonorthonormal
previously. My understanding is thatzernike.opd_expand_segments
should not give different results, just be more efficient. If this understanding is incorrect, please let me know.I have two functions that only differ in using
opd_expand_nonorthonormal
oropd_expand_segments
:and
These functions give different results. In the below figures, the same stretch is used in both cases.
Using
poppy.zernike.opd_expand_nonorthonormal
in the functionfit_terms_to_surface
above:Using
poppy.zernike.opd_expand_segments
in the functionfit_terms_to_segments
above:The text was updated successfully, but these errors were encountered: