Skip to content

Commit

Permalink
Merge pull request #5 from koltafrickenfer/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
kolt-mcb authored Jan 7, 2018
2 parents 9c47e86 + 1af3ebe commit 16e8097
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/neat.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,6 @@ def rankGlobally(self,addBest=False):
c = 1
for rank in sIndex:
self.species[rank[0]].genomes[rank[1]].globalRank = c
print(c,self.species[rank[0]].genomes[rank[1]].fitness)
if c == len(sIndex):
topGenome = self.species[rank[0]].genomes[rank[1]]
if addBest:
Expand Down
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,10 @@ def loadFile(self):
self.population.set(self.pool.Population)
self.poolInitialized = True
f.close()
self.ax.stackplot(
list(range(len(self.plotData[0]))), *self.plotData, baseline='wiggle')
canvas = FigureCanvasTkAgg(self.fig, self.master)
canvas.get_tk_widget().grid(row=5, column=0, rowspan=5, sticky="nesw")
print(filename, "loaded")


Expand Down
4 changes: 4 additions & 0 deletions mario.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,10 @@ def loadFile(self):
self.population.set(self.pool.Population)
self.poolInitialized = True
f.close()
self.ax.stackplot(
list(range(len(self.plotData[0]))), *self.plotData, baseline='wiggle')
canvas = FigureCanvasTkAgg(self.fig, self.master)
canvas.get_tk_widget().grid(row=5, column=0, rowspan=5, sticky="nesw")
print(filename, "loaded")


Expand Down

0 comments on commit 16e8097

Please sign in to comment.