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

"Zernike" polynomials for an elliptical aperture #97

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

alphaCassi
Copy link

I added the class to generate orthonormal polynomials and a wavefront map for an elliptical aperture.
I, also, added a test for it.

Best regards,
Oleksandra

@matthewtownson
Copy link
Member

Sorry this has taken me a while to get round to. I'll have a look at it this week.

@matthewtownson matthewtownson self-assigned this Sep 16, 2024
#!/usr/bin/env python3

import numpy as np
from zernike import RZern
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't find the RZern function that you import and use here, is this something else you have added?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I use it in the line 33 zernike = RZern(self.rmax).
However, I've thought that maybe I can use zernike from aotools to avoid the use of an extra library. I'll need some days to modify it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw that you used it, I mean't that in the zernike module there is no RZern function, so I wasn't sure if it was something you added to the zernike module but forgot to include in the pull request.

Definitley use the existing functions in aotools if you can, its just that I couldn't find this one defined in aotools.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you rework this into simpler tests which just make sure the code doesn't crash and that the inputs and outputs are right sized arrays and types? For examples you can look at the simpler tests we have in the test_zernike.py file.

These are much more in depth tests to visualise the outputs to verify them. They are useful, but would ideally be added to the aotools_tests repository as part of the Zernike notebook.

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

Successfully merging this pull request may close these issues.

2 participants