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

Mutual coupling fix #248

Merged
merged 16 commits into from
Feb 23, 2023
Merged

Mutual coupling fix #248

merged 16 commits into from
Feb 23, 2023

Conversation

r-pascua
Copy link
Contributor

@r-pascua r-pascua commented Feb 9, 2023

This PR updates the mutual coupling simulation routine to correctly use the provided UVBeam objects. See this memo for details.

The Jones matrix reordering step was fixed so that the shapes used in
calculation are (n_directions, n_freqs, n_feeds, n_axes). Prior to this,
the last two axes were swapped.

The overall scaling of the coupling coefficients was also not updated
correctly when the calculation was updated a few commits ago--it was
scaled by the frequency rather than the wavelength. This has been fixed.
Make things work again after changing the simulation routine.
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@codecov
Copy link

codecov bot commented Feb 9, 2023

Codecov Report

Base: 96.52% // Head: 96.55% // Increases project coverage by +0.03% 🎉

Coverage data is based on head (68db6d9) compared to base (ac9fed1).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #248      +/-   ##
==========================================
+ Coverage   96.52%   96.55%   +0.03%     
==========================================
  Files          24       24              
  Lines        3019     3046      +27     
==========================================
+ Hits         2914     2941      +27     
  Misses        105      105              
Impacted Files Coverage Δ
hera_sim/beams.py 98.22% <ø> (ø)
hera_sim/cli_utils.py 98.78% <ø> (ø)
hera_sim/foregrounds.py 100.00% <ø> (ø)
hera_sim/interpolators.py 97.05% <ø> (ø)
hera_sim/io.py 98.63% <ø> (ø)
hera_sim/simulate.py 94.72% <ø> (ø)
hera_sim/utils.py 97.07% <ø> (ø)
hera_sim/visibilities/healvis_wrapper.py 97.29% <ø> (ø)
hera_sim/visibilities/pyuvsim_wrapper.py 100.00% <ø> (ø)
hera_sim/visibilities/simulators.py 85.46% <ø> (ø)
... and 5 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@steven-murray steven-murray left a comment

Choose a reason for hiding this comment

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

This all looks good to me! Thanks @r-pascua for all the hard work.

It should only have one factor of omega_p. Also improved the class
documentation.
@r-pascua r-pascua merged commit f206e80 into main Feb 23, 2023
@r-pascua r-pascua deleted the mutual_coupling_fix branch February 23, 2023 20:56
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