def _make_alleles(self):
        """ Returns a GAllelle.Galleles instance with alleles corresponding to
        the parameters specified by the user"""

        alleles = GAllele.GAlleles()
        count = 0
        for param in self.get_parameters().values():
            allele = None
            count += 1
            val = param.evaluate()[0] #now grab the value
            low = param.low
            high = param.high

            metadata = param.get_metadata()[1]
            #then it's a float or an int, or a member of an array
            if ('low' in metadata or 'high' in metadata) or \
                array_test.search(param.targets[0]):
                #some kind of int
                if isinstance(val, int_types):
                    allele = GAllele.GAlleleRange(begin=low, end=high, real=False)
                elif isinstance(val, real_types):
                    #some kind of float
                    allele = GAllele.GAlleleRange(begin=low, end=high, real=True)

            elif metadata in "values" and \
                 isinstance(metadata['values'], iterable_types):
                allele = GAllele.GAlleleList(metadata['values'])

            if allele:
                alleles.add(allele)
            else:
                self.raise_exception("%s is not a float, int, or enumerated "
                                     "datatype. Only these 3 types are allowed"
                                     % param.targets[0], ValueError)
        self.count = count
        return alleles
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.lib/src/openmdao/lib/drivers/genetic.py/Genetic._make_alleles/swapped operands of `in`