Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

added exception in the case of KL modes without central obsc #84

Merged
merged 2 commits into from
Jul 8, 2022

Conversation

ojdf
Copy link
Contributor

@ojdf ojdf commented Jun 23, 2022

The method used to compute KL modes is only valid for annular apertures, but nothing stops you from using ri=0 (0 central obscuration), resulting in artefacts close to the centre of the modes. Just added a check and exception to make sure this cannot be done.

@codecov
Copy link

codecov bot commented Jun 23, 2022

Codecov Report

Merging #84 (2012503) into main (76dd3dc) will decrease coverage by 0.04%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main      #84      +/-   ##
==========================================
- Coverage   92.10%   92.06%   -0.05%     
==========================================
  Files          42       42              
  Lines        1988     1990       +2     
==========================================
+ Hits         1831     1832       +1     
- Misses        157      158       +1     
Impacted Files Coverage Δ
aotools/functions/karhunenLoeve.py 92.13% <50.00%> (-0.38%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 76dd3dc...2012503. Read the comment docs.

@matthewtownson matthewtownson merged commit 9328790 into AOtools:main Jul 8, 2022
@ojdf ojdf deleted the klmode_exception branch July 8, 2022 09:49
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants