-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add convert_to_circular function to imaging utils #100
Conversation
Add option to convert VisibilityDataSets that are in the stokes polarization basis into the circular polarization basis.
Add test suite for new function.
add convert_to_circular to __all__
lsl/imaging/utils.py
Outdated
if 'Q' in data_set.pols and 'U' in data_set.pols: | ||
pairs += 1 | ||
if pairs == 0: | ||
raise RuntimeError("Too few Stokes parameters to form any linear polarization products") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
linear -> circular
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #100 +/- ##
==========================================
- Coverage 84.03% 84.02% -0.01%
==========================================
Files 83 83
Lines 24290 24337 +47
==========================================
+ Hits 20411 20449 +38
- Misses 3879 3888 +9
🚀 New features to boost your workflow:
|
Add functionality and testing to convert to circular polarization in the imaging utils.