Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f492bb3

Browse files
Replace gene_idx by space_idx
1 parent a13953b commit f492bb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎pygad/helper/unique.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ def unpack_gene_space(self,
556556
if self.gene_type_single == True:
557557
dtype = self.gene_type
558558
else:
559-
dtype = self.gene_type[gene_idx]
559+
dtype = self.gene_type[space_idx]
560560

561561
if dtype[0] in pygad.GA.supported_int_types:
562562
if 'step' in space.keys():
@@ -594,7 +594,7 @@ def unpack_gene_space(self,
594594
if self.gene_type_single == True:
595595
dtype = self.gene_type
596596
else:
597-
dtype = self.gene_type[gene_idx]
597+
dtype = self.gene_type[space_idx]
598598

599599
# Change the data type.
600600
gene_space_unpacked[space_idx] = numpy.array(gene_space_unpacked[space_idx],

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /