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
Guang
x-cigale
Commits
acf96523
Commit
acf96523
authored
Apr 10, 2017
by
Médéric Boquien
Browse files
Simplify the rounding of the uncertainties and fix a bug when we analyse more than one object.
parent
3aa04792
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale/managers/results.py
View file @
acf96523
...
...
@@ -89,11 +89,10 @@ class BayesResultsManager(object):
for
i
,
variable
in
enumerate
(
merged
.
propertiesnames
):
if
variable
.
endswith
(
'_log'
):
m
axstd
=
lambda
mean
,
std
:
max
(
0.02
,
std
)
m
erged
.
errors
[:,
i
]
=
np
.
maximum
(
0.02
,
merged
.
errors
[:,
i
]
)
else
:
maxstd
=
lambda
mean
,
std
:
max
(
0.05
*
mean
,
std
)
merged
.
errors
[:,
i
]
=
maxstd
(
merged
.
means
[:,
i
],
merged
.
errors
[:,
i
])
merged
.
errors
[:,
i
]
=
np
.
maximum
(
0.05
*
merged
.
means
[:,
i
],
merged
.
errors
[:,
i
])
return
merged
...
...
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