Skip to content

Small optimizations in beam convolver#492

Merged
paganol merged 3 commits intomasterfrom
optimize_convolver
Feb 5, 2026
Merged

Small optimizations in beam convolver#492
paganol merged 3 commits intomasterfrom
optimize_convolver

Conversation

@paganol
Copy link
Member

@paganol paganol commented Feb 3, 2026

This small pull request adds logging to warn users when the input sky or beam alm arrays are being resized, and improves memory efficiency when converting arrays to complex types. The most important changes are:

Logging improvements:

  • Added a warning log when the input sky alm is resized, indicating the new ℓ_max value being used.
  • Added a warning log when the input beam alm is resized, indicating the new ℓ_max and m_max values being used.

Performance and memory usage:

  • Updated the astype calls for both sky and beam arrays to use copy=False, reducing unnecessary memory allocation during type conversion.

@paganol paganol added the enhancement New feature or request label Feb 3, 2026
@paganol paganol merged commit 42f23f6 into master Feb 5, 2026
1 check was pending
@paganol paganol deleted the optimize_convolver branch February 5, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant