Skip to content

Commit ee83edb

Browse files
Fix outdated reference to genome ID.
Added missing config to connect_fs_neat call.
1 parent 934cf85 commit ee83edb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

neat/genome.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def create(cls, config, key):
359359

360360
# Add connections based on initial connectivity type.
361361
if config.initial_connection == 'fs_neat':
362-
g.connect_fs_neat()
362+
g.connect_fs_neat(config)
363363
elif config.initial_connection == 'full':
364364
g.connect_full(config)
365365
elif config.initial_connection == 'partial':

neat/statistics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def best_unique_genomes(self, n):
6262
"""Returns the most n fit genomes, with no duplication."""
6363
best_unique = {}
6464
for g in self.most_fit_genomes:
65-
best_unique[g.ID] = g
65+
best_unique[g.key] = g
6666
best_unique = list(best_unique.values())
6767

6868
def key(genome):

0 commit comments

Comments
 (0)