-
Notifications
You must be signed in to change notification settings - Fork 8
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
maint: update API for new multi-processing fftvis #332
Conversation
Update to new pyuvdata AnalyticBeam
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #332 +/- ##
==========================================
+ Coverage 93.37% 93.42% +0.05%
==========================================
Files 25 25
Lines 3428 3333 -95
Branches 577 553 -24
==========================================
- Hits 3201 3114 -87
+ Misses 122 116 -6
+ Partials 105 103 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Thanks for all the work on this, @steven-murray! I'm mostly okay with the changes here. I was wondering why the |
I don't know much about the PolyBeam, but looking at the plots, the old beam plot looks to me like a power beam not an efield beam (even though that's what it's called in the notebook). The thing I'm picking up on is that it doesn't seem to have any polarized structure, so I guess the more appropriate thing to say is that it looks like an unpolarized beam. The new plot looks much more like a polarized Efield beam. Looking at the memo on the polybeam, I see no plots that really look like a polarized E-field beam, they all look unpolarized. And digging into the code, I think I see the difference: in the new code the I also take slight issue with the way the beam is turned into a polarized beam -- just multiplying by a dipole response. The result looks nothing like the Fagnioni simulations, which are of course polarized. |
@bhazelton yes you're exactly right -- the difference is due to me removing the unpolarized branch of code. I think I was equating "unpolarized" with "power" beam, and since I only wrote the efield beam evaluation, I removed the unpolarized option. I'm not the original author of the polybeam code, so I'm not totally sure I understand the intention behind having the polarized keyword here. Maybe @philbull can enlighten us further? |
@bhazelton and @tyler-a-cox I updated the |
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.
Thanks for the PolyBeam fix @steven-murray, this looks good to me!
This PR updates the FFTVis API so that it works with the multiprocessing-enabled fftvis.