Skip to content

Correct normalization in photon diffraction by circles#507

Merged
welucas2 merged 3 commits intomainfrom
u/welucas2/correct-diffraction-normalisation
Mar 9, 2026
Merged

Correct normalization in photon diffraction by circles#507
welucas2 merged 3 commits intomainfrom
u/welucas2/correct-diffraction-normalisation

Conversation

@welucas2
Copy link
Collaborator

@welucas2 welucas2 commented Feb 5, 2026

This should address #506. I've made the fix to the normalization that I suggested in that issue and also made changes to the two tests it caused to fail. Those failures are because we now see a lot of photons making up a disk around the test star, whereas before they were pure spikes. Some of the numbers I picked in test_rubin_diffraction_produces_spikes() feel a little arbitrary to me, so please let me know if they could be made more physical.

Copy link
Contributor

@rmjarvis rmjarvis left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for finding this bug, William.

@welucas2
Copy link
Collaborator Author

welucas2 commented Mar 9, 2026

My last PR should have fixed CI, so I'm going ahead and merging.

@welucas2 welucas2 merged commit f20cecf into main Mar 9, 2026
1 of 5 checks passed
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