(genome, **args)
Allele initialization function of G1DList

    To use this initializator, you must specify the *allele* genome parameter with the
    :class:`GAllele.GAlleles` instance.
Allele initialization function of G1DList
Allele initialization function of G1DList
def G1DListInitializatorAllele(genome, **args):
    """ Allele initialization function of G1DList

    To use this initializator, you must specify the *allele* genome parameter with the
    :class:`GAllele.GAlleles` instance.

    """

    allele = genome.getParam("allele", None)
    if allele is None:
        Util.raiseException("to use the G1DListInitializatorAllele, you must specify the 'allele' parameter")

    genome.genomeList = [allele[i].getRandomAllele() for i in xrange(genome.getListSize())]
def G1DListInitializatorAllele ( genome , * * args ) : allele = genome . getParam ( "allele" , None ) if allele is None : Util . raiseException ( "to use the G1DListInitializatorAllele, you must specify the 'allele' parameter" ) genome . genomeList = [ allele [ i ] . getRandomAllele ( ) for i in xrange ( genome . getListSize ( ) ) ]