Commit acf96523 authored by Médéric Boquien's avatar 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
......@@ -89,11 +89,10 @@ class BayesResultsManager(object):
for i, variable in enumerate(merged.propertiesnames):
if variable.endswith('_log'):
maxstd = lambda mean, std: max(0.02, std)
merged.errors[:, i] = np.maximum(0.02, merged.errors[:, i])
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
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