Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cigale
CIGALE
Commits
45c5e12a
Commit
45c5e12a
authored
Mar 17, 2017
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale/managers/parameters.py
View file @
45c5e12a
...
...
@@ -57,7 +57,8 @@ class ParametersManagerGrid(object):
def
__len__
(
self
):
return
self
.
size
def
_split
(
self
,
l
,
nb
,
nz
):
@
staticmethod
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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment