Commit 7e6b0368 authored by Yannick Roehlly's avatar Yannick Roehlly
Browse files

Correct default error computation in psum

parent af203439
......@@ -529,7 +529,7 @@ def adjust_errors(flux, error, default_error=0.1, systematic_deviation=0.1):
error = np.copy(error)
# Replace errors below tolerance by the default one.
error[error < TOLERANCE] = (default_error * error[error < TOLERANCE])
error[error < TOLERANCE] = (default_error * flux[error < TOLERANCE])
# Add the systematic error.
error = np.sqrt(np.square(error) + np.square(flux * systematic_deviation))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment