Skip to content

Set uncertainties more correctly #83

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

Merged
merged 6 commits into from
Apr 14, 2025
Merged

Set uncertainties more correctly #83

merged 6 commits into from
Apr 14, 2025

Conversation

Tom-Willemsen
Copy link
Contributor

@Tom-Willemsen Tom-Willemsen commented Nov 25, 2024

Invalid normalization should crash a scan - there's really no way around this, we should not "pretend" to be able to do it. Have checked with scientists that this makes sense to them and they agreed an exception is better than giving "some" data which would be meaningless. In real life, monitor counts being zero means something is fundamentally wrong with the beamline (shutter closed, monitor not in, etc) so the scan can never really be valid in that state.

Also move the variance addition later - after summing all the detectors - basically do it at the last level possible when our units are still "counts". This avoids broadcasting the "extra" variance across multiple tof channels / pixels.

@Tom-Willemsen Tom-Willemsen marked this pull request as ready for review March 31, 2025 13:56
@Tom-Willemsen Tom-Willemsen requested a review from rerpha March 31, 2025 13:57
@Tom-Willemsen Tom-Willemsen marked this pull request as draft March 31, 2025 13:59
This avoids broadcasting the addition across many tof channels/pixels
@pull-request-size pull-request-size bot added size/L and removed size/M labels Mar 31, 2025
@Tom-Willemsen Tom-Willemsen marked this pull request as ready for review March 31, 2025 14:43
@Tom-Willemsen Tom-Willemsen requested a review from rerpha April 8, 2025 05:10
@rerpha rerpha merged commit c3bca10 into main Apr 14, 2025
13 checks passed
@rerpha rerpha deleted the uncertainties branch April 14, 2025 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants