Open iamdaviddunlap opened 5 years ago
Resolved: I am dumb, I was calling the function incorrectly. I was calling print(genome.distance(self.first_genome, config))
When instead it should be print(genome.distance(self.first_genome, config.genome_config))
When calling the distance(other, config) function from DefaultGenome, I am getting the following error:
I believe the issue is caused by line 95 of genes.py which calls
config.compatibility_weight_coefficient
. However, the config never has this attribute, instead, I believe it should haveconfig.genome_config.compatibility_weight_coefficient
. Am I doing something wrong, or is there a problem with the source code?