Commit 8c001629 authored by Médéric Boquien's avatar Médéric Boquien
Browse files

The test did not work for some reason. If I understand the code correctly, it...

The test did not work for some reason. If I understand the code correctly, it should be enough to test the min and max values of the histogram.
parent b5fee044
......@@ -354,8 +354,7 @@ def analysis(idx, obs):
max_hist[par] = np.max(values[:,par])
for i, val in enumerate(analysed_averages):
if np.all((x == -99. or x == model_variables[0, i])
for x in model_variables[:, i]):
if min_hist[i] == max_hist[i]:
pdf_grid = max_hist[i]
pdf_prob = 1.
analysed_averages[i] = model_variables[0, i]
......
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