Skip to content

Add power beam sampling#12

Merged
philbull merged 147 commits intomainfrom
beam-sampler-debug
Oct 21, 2025
Merged

Add power beam sampling#12
philbull merged 147 commits intomainfrom
beam-sampler-debug

Conversation

@mwilensky768
Copy link
Copy Markdown
Contributor

This adds a lot of changes to beam_example.py and related code to make it so that power beam sampling can be done.

Additionally, it adds some compatibility for more up-to-date pyuvdata and matvis versions. I also think we should switch to numpy>2 -- the only relevant update is the np.random API as far as I understand.

@philbull I'm requesting your review for vis_simulator.py

In particular, I've done some changes to follow pyuvdata's UVBeam/AnalyticBeam/BeamInterface stuff and I'm not sure if I made the relevant update everywhere in the code (in other words I fixed functions that I used during beam sampling but other simulator functions might need to follow up and I think you have a better knowledge of where these lines exist).

@mwilensky768
Copy link
Copy Markdown
Contributor Author

Hi @philbull I just refactored beam_example into four new files: per_antenna_beam_example.py, power_beam_example.py, power_beam_sampler.py, and beam_example_utils.py. I think this last file probably has useful helper functions for setting up simulations in general, so it may not have been a purely aesthetic endeavor. I tested that this recovers the beam paper II plots. I also fixed some merge conflicts related to pyuvdata compatibility.

I think this is ready to merge.

@philbull philbull merged commit 0374ced into main Oct 21, 2025
1 of 2 checks passed
@philbull philbull deleted the beam-sampler-debug branch October 21, 2025 20:53
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