Finally runs again

This commit is contained in:
Steven Robertson
2010-09-06 11:18:20 -04:00
parent 27e7fd82a3
commit f3298e0bed
5 changed files with 230 additions and 209 deletions

View File

@ -25,15 +25,14 @@ def main(args):
verbose = 1
if '-d' in args:
verbose = 3
ctx = LaunchContext([IterThread], block=(256,1,1), grid=(64,1), tests=True)
ctx.compile(verbose=verbose)
ctx.run_tests()
with open(args[-1]) as fp:
genomes = Genome.from_string(fp.read())
anim = Animation(genomes)
anim.compile()
anim.render_frame()
#genome.width, genome.height = 512, 512
#genome.sample_density = 1000
#obuf, stats, frame = genome.render(estimator=3)