Skip to content

Commit

Permalink
fix last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wbierbower committed Apr 23, 2015
1 parent d96f85f commit 16ab58f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fauxgeo/raster_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def random(self):
a = np.random.rand(self.rows, self.cols)
return self._create_raster(a)

def random_list(self, l):
a = np.array((self.rows, self.cols))
def random_from_list(self, l):
a = np.zeros((self.rows, self.cols))
for i in xrange(len(a)):
for j in xrange(len(a[0])):
a[i, j] = random.choice(l)
Expand Down

0 comments on commit 16ab58f

Please sign in to comment.