Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cigale
CIGALE
Commits
7e6b0368
Commit
7e6b0368
authored
Jan 21, 2014
by
Yannick Roehlly
Browse files
Correct default error computation in psum
parent
af203439
Changes
1
Show whitespace changes
Inline
Side-by-side
pcigale/analysis_modules/psum.py
View file @
7e6b0368
...
...
@@ -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
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment