Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
cigale
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
12
Issues
12
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cigale
cigale
Commits
55333ac0
Commit
55333ac0
authored
Apr 14, 2017
by
Médéric Boquien
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exclude invalid models to compute the total weight of a block of models.
parent
acf96523
Changes
1
Hide whitespace changes
Inline
Sidebyside
Showing
1 changed file
with
1 addition
and
1 deletion
+1
1
pcigale/analysis_modules/pdf_analysis/workers.py
pcigale/analysis_modules/pdf_analysis/workers.py
+1
1
No files found.
pcigale/analysis_modules/pdf_analysis/workers.py
View file @
55333ac0
...
...
@@ 177,7 +177,7 @@ def analysis(idx, obs):
# We use the exponential probability associated with the χ² as
# likelihood function.
likelihood
=
np
.
exp
(

chi2
/
2.
)
gbl_results
.
bayes
.
weights
[
idx
]
=
np
.
sum
(
likelihood
)
gbl_results
.
bayes
.
weights
[
idx
]
=
np
.
nan
sum
(
likelihood
)
# We compute the weighted average and standard deviation using the
# likelihood as weight.
...
...
Write
Preview
Markdown
is supported
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