Skip to content

Conversation

@Tom-Willemsen
Copy link
Member

@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.

3 participants