Use functions for palette instead of silly objects

This commit is contained in:
Steven Robertson
2011-12-17 18:45:33 -05:00
parent 3b29bb2dc2
commit 529bf48982
2 changed files with 24 additions and 11 deletions

View File

@ -251,7 +251,7 @@ class Renderer(object):
palint_times.fill(1e10)
palint_times[:len(ptimes)] = ptimes
d_palint_times = cuda.to_device(palint_times)
pvals = [genome.decoded_palettes[i].data for i in pidxs]
pvals = [genome.decoded_palettes[i] for i in pidxs]
d_palint_vals = cuda.to_device(np.concatenate(pvals))
if self.acc_mode in ('deferred', 'atomic'):