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

Fix pol vector #1694

Merged
merged 1 commit into from May 13, 2024
Merged

Fix pol vector #1694

merged 1 commit into from May 13, 2024

Conversation

dbochkov-flexcompute
Copy link
Contributor

Related to #1683

It seems like our frontend polarization visualization was inconsistent with actual fields being injected. Frontend arrow was calculated sometimes based on summation and sometimes based on subtraction of angle_phi and pol_angle, while on backend it is always summation. That is, rotation for angle_phi and pol_angle are always with respect to the positive direction of injection axis. Moreover the visualization was discontinuous between theta < 0, theta = 0, and theta > 0.

Here's comparison between the visualized polarization vector (red) and extracted from actual fields (blue)
pol_vector_old

Now we just repeat the same steps for computing _pol_vector as the backend does for field computations. This seems to resolve all inconsistencies
pol_vector_new

@tylerflex
Copy link
Collaborator

Thanks @dbochkov-flexcompute. Can you just add a changelog item under fixed and I think this is good to merge and also fixes #1683 as far as I can tell.

@tylerflex tylerflex added rc2 2nd pre-release 2.7 will go into version 2.7.* labels May 13, 2024
@tylerflex tylerflex merged commit 9aa3035 into pre/2.7 May 13, 2024
16 checks passed
@tylerflex tylerflex deleted the daniil/fix-pol-vector branch May 13, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.7 will go into version 2.7.* rc2 2nd pre-release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Characterizing the orientation of angled sources is the wrong kind of difficult
2 participants