Commit d2191a8a authored by Médéric Boquien's avatar Médéric Boquien

More correct block size computation to ensure that all the models are computed...

More correct block size computation to ensure that all the models are computed and that each block contains all the redshifts for a given model.
parent 45c5e12a
......@@ -72,8 +72,8 @@ class ParametersManagerGrid(object):
Number of redshifts.
"""
k, m = divmod(len(l), nb)
step = k + nz - m
k = len(l) // nb
step = k + nz - k%nz
return [l[i * step: (i+1) * step] for i in range(nb)]
......
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