You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Code scan] Short Simpson HTI ranges swap statistical and integration errors #129
Problem integrate_range_simpson() normally returns (x, integral, integration_error, statistical_error), and the long-range branch follows that order. However, the len(xx) < 5 branch returns (x, integral, stat_err, zeros). integrate_range_hti() then reads the returned values as i_e and s_e, so short Simpson ranges can report zero statistical error and put propagated statistical error in the systematic/integration-error slot.
Reproduction
Use three lambda points with nonzero de_err and call integrate_range_hti(..., scheme='s'). The reported statistical error should be nonzero, but the current short-range branch returns it through sys_err while stt_err becomes zero.
Expected result
The short-range branch should preserve the same return order as the long-range branch.
Activity