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 test for repeated wave vectors in SampledCorrelations #314

Merged
merged 4 commits into from
Sep 8, 2024

Conversation

ddahlbom
Copy link
Member

@ddahlbom ddahlbom commented Sep 5, 2024

Fixes the bug reported by Yishu Wang which is triggered when the requesting intensities at successive q points that reference the same underlying data in the data field of SampledCorrelations.

Previously, wave vectors such as [0, 0, 1/2] and [1, 0, 1/2] were falsely identified when they appeared successively. This led to incorrect treatment of phase averaging and form factors.

@kbarros kbarros merged commit 2bccf05 into main Sep 8, 2024
4 checks passed
@kbarros kbarros deleted the sc-wave-vector-rounding-fix branch September 8, 2024 13:09
kbarros added a commit that referenced this pull request Sep 10, 2024
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