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

Add convert_to_circular function to imaging utils #100

Merged
merged 5 commits into from
Mar 6, 2025

Conversation

ctaylor-physics
Copy link
Contributor

Add functionality and testing to convert to circular polarization in the imaging utils.

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__
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")
Copy link
Member

Choose a reason for hiding this comment

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

linear -> circular

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link

codecov bot commented Mar 6, 2025

Codecov Report

Attention: Patch coverage is 80.85106% with 9 lines in your changes missing coverage. Please review.

Project coverage is 84.02%. Comparing base (71f42eb) to head (89c3a1b).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
lsl/imaging/utils.py 80.85% 9 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            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     
Files with missing lines Coverage Δ
lsl/imaging/utils.py 82.48% <80.85%> (-0.09%) ⬇️
🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jaycedowell jaycedowell merged commit 2e461d6 into lwa-project:main Mar 6, 2025
7 of 9 checks passed
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