def chunker(ensemble_list, ncpu):
    """
	Generate successive chunks of ensemble_list.
	"""
    length = int(len(ensemble_list) / ncpu)
    for i in range(0, len(ensemble_list), length):
        yield ensemble_list[i:i + length]
