Commit 55333ac0 authored by Médéric Boquien's avatar Médéric Boquien
Browse files

Exclude invalid models to compute the total weight of a block of models.

parent acf96523
......@@ -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.nansum(likelihood)
# We compute the weighted average and standard deviation using the
# likelihood as weight.
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