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
064e938b
Commit
064e938b
authored
Feb 27, 2018
by
Hector Salas
Browse files
Add wlikely to analysis function in workers.py to fix bug with nan values
parent
00d6eaad
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale/analysis_modules/pdf_analysis/workers.py
View file @
064e938b
...
...
@@ -203,8 +203,9 @@ def analysis(idx, obs):
values
=
_
(
gbl_models
.
properties
[
i
,
wz
]
*
scaling
*
corr_dz
)
else
:
values
=
_
(
gbl_models
.
properties
[
i
,
wz
])
mean
,
std
=
weighted_param
(
values
,
likelihood
)
wlikely
=
np
.
isfinite
(
likelihood
)
mean
,
std
=
weighted_param
(
values
[
wlikely
],
likelihood
[
wlikely
])
gbl_results
.
bayes
.
means
[
idx
,
i
]
=
mean
gbl_results
.
bayes
.
errors
[
idx
,
i
]
=
std
if
gbl_models
.
conf
[
'analysis_params'
][
'save_chi2'
]
is
True
:
...
...
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