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: CMBLensed handling monopole and dipole #215

Merged
merged 6 commits into from
Mar 20, 2025

Conversation

JamesAmato
Copy link
Contributor

Fixes bug in CMBLensed where having the monopole and dipole in CAMB's power spectra cause errors (Issue #212).

Includes a demonstration notebook at the top level to prevent issues with imports (intended for review).

Also includes a test for the cmb_spectra.

While the change does address L=0 and L=1 indelensing_ells, it cannot be tested without addressing Issue #213. (Even if a test were included, it would only check for crashes -- I don't have a known-good result.)

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@JamesAmato
Copy link
Contributor Author

I've applied similar suggestions as appear in #214 to this pull request.

The notebook has been moved to gist.github.com: https://gist.github.com/JamesAmato/239298918103212163dbb4f7c0acfe7c

Copy link
Member

@zonca zonca left a comment

Choose a reason for hiding this comment

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

please also rebase on main to grab the changes you made in the previous PR

@JamesAmato JamesAmato force-pushed the cmb_lensed_handle_l01 branch from d236cfc to cd99bc2 Compare March 20, 2025 21:40
@zonca
Copy link
Member

zonca commented Mar 20, 2025

thanks for your contribution!

@zonca zonca merged commit 0a589e0 into galsci:main Mar 20, 2025
4 checks passed
@JamesAmato JamesAmato deleted the cmb_lensed_handle_l01 branch March 21, 2025 19:43
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