Skip to content

Commit

Permalink
Replace gene_idx by space_idx
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedfgad committed Dec 8, 2024
1 parent a13953b commit f492bb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygad/helper/unique.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ def unpack_gene_space(self,
if self.gene_type_single == True:
dtype = self.gene_type
else:
dtype = self.gene_type[gene_idx]
dtype = self.gene_type[space_idx]

if dtype[0] in pygad.GA.supported_int_types:
if 'step' in space.keys():
Expand Down Expand Up @@ -594,7 +594,7 @@ def unpack_gene_space(self,
if self.gene_type_single == True:
dtype = self.gene_type
else:
dtype = self.gene_type[gene_idx]
dtype = self.gene_type[space_idx]

# Change the data type.
gene_space_unpacked[space_idx] = numpy.array(gene_space_unpacked[space_idx],
Expand Down

0 comments on commit f492bb3

Please sign in to comment.