Skip to content
Snippets Groups Projects
Commit 1639a59b authored by Busson Loic's avatar Busson Loic
Browse files

pull

parent 326203bc
Branches
No related tags found
No related merge requests found
No preview for this file type
...@@ -23,21 +23,15 @@ def main(N,tmax,pmutation, proportion,brin="plasmid_8k.fasta"): ...@@ -23,21 +23,15 @@ def main(N,tmax,pmutation, proportion,brin="plasmid_8k.fasta"):
if individu.score>max: if individu.score>max:
best=individu best=individu
max=individu.score max=individu.score
L.append(max) L.append(1/max)
print(i,":",max) print(i,":",1/max)
plt.plot([i for i in range(tmax)], L) plt.plot([i for i in range(tmax)], L)
plt.show() plt.show()
return(best, People) return(best, People)
best, People = main(60,100,0.01,20) best,People = main(60,100,0.01,25)
traj = Traj3D()
traj.compute(best.brin,best.table)
traj.draw("plot")
best,People = main(100,100,0.01,50)
traj = Traj3D() traj = Traj3D()
traj.compute(best.brin,best.table) traj.compute(best.brin,best.table)
traj.draw("plot") traj.draw("plot")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment