Skip to content

Commit

Permalink
Fix multi-channel generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 committed Jul 30, 2018
1 parent 7a7c0f5 commit 449d1cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fluids/obs/grid.py
Expand Up @@ -140,5 +140,5 @@ def render(self, surface):
def get_array(self):
arr = np.zeros((self.grid_dim, self.grid_dim, len(self.pygame_rep)))
for i in range(len(self.pygame_rep)):
arr[:,:,i] = pygame.surfarray.array2d(self.pygame_rep[0]) > 0
arr[:,:,i] = pygame.surfarray.array2d(self.pygame_rep[i]) > 0
return arr

0 comments on commit 449d1cd

Please sign in to comment.