Skip to content

Accelerate noise generation#282

Merged
low-sky merged 1 commit intoPhangsTeam:masterfrom
low-sky:master
Jan 14, 2026
Merged

Accelerate noise generation#282
low-sky merged 1 commit intoPhangsTeam:masterfrom
low-sky:master

Conversation

@low-sky
Copy link
Copy Markdown
Collaborator

@low-sky low-sky commented Jan 12, 2026

Speedups for noise generation. Profiling suggests the big problem was in the convolution being "not FFT" rather than in stride issues but these are implemented anyways.

@thomaswilliamsastro
Copy link
Copy Markdown
Collaborator

This makes me happy. Do you have any metrics on how much faster this ends up being?

@low-sky low-sky marked this pull request as ready for review January 13, 2026 19:36
@low-sky
Copy link
Copy Markdown
Collaborator Author

low-sky commented Jan 13, 2026

Immense improvements for heavily oversampled beams (>factor of 10). For reasonable pixels per beam, it's a factor of a few.

There are some issues with the heavily oversampled beams and the largest scales of convolution. There's clearly not good spectral sampling in this case and there's signal in the noise. That's a separate issue so this can be looked at now.

- Accelerate noise generation
- Trapping cases where box is large
- Add padding to stop wrapping pathologies. Allow old method as (bad) option
- Strip out debugging prints
@thomaswilliamsastro
Copy link
Copy Markdown
Collaborator

Looks good to me, I've squashed/rebased and done a little tidy up. I think this is good to merge

@low-sky low-sky merged commit 5052f7b into PhangsTeam:master Jan 14, 2026
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