Commit 45c5e12a authored by Médéric Boquien's avatar Médéric Boquien
Browse files

Transform _split() into a static method as it does not depend on the internal state of the class.

parent de498f16
......@@ -57,7 +57,8 @@ class ParametersManagerGrid(object):
def __len__(self):
return self.size
def _split(self, l, nb, nz):
def _split(l, nb, nz):
"""Split a list l into nb blocks with blocks of such size that all the
redshifts of a given model as in the same block.
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