Commit 0f0845bc authored by Médéric Boquien's avatar Médéric Boquien
Browse files

Pass the proper index to the array.

parent b5fba358
......@@ -261,7 +261,7 @@ def analysis(idx, obs):
norm_facts[imod] = optimize.newton(dchi2_over_ds2, norm_facts[imod],
tol=1e-16,
args=(obs_fluxes, obs_errors,
model_fluxes[mod, :]))
model_fluxes[imod, :]))
model_fluxes *= norm_facts[:, np.newaxis]
# χ² of the comparison of each model to each observation.
......
Markdown is supported
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