From b15f68905f08b6b364876591d4e690c58c3e2f0a Mon Sep 17 00:00:00 2001 From: Haiming Zhang Date: Tue, 21 Jul 2015 15:38:12 +0000 Subject: [PATCH] fig a bug. --- processing/pre/seeds_fromRandom.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/processing/pre/seeds_fromRandom.py b/processing/pre/seeds_fromRandom.py index 665ac2961..9012e7393 100755 --- a/processing/pre/seeds_fromRandom.py +++ b/processing/pre/seeds_fromRandom.py @@ -77,9 +77,9 @@ def kdtree_search(xyz, point) : return dist def generatePoint() : - return np.array([random.uniform(0,options.grid[0]/max(options.grid)), \ - random.uniform(0,options.grid[1]/max(options.grid)), \ - random.uniform(0,options.grid[2]/max(options.grid))]) + return np.array([random.uniform(0,float(options.grid[0])/float(max(options.grid))), \ + random.uniform(0,float(options.grid[1])/float(max(options.grid))), \ + random.uniform(0,float(options.grid[2])/float(max(options.grid)))]) # ------------------------------------------ setup file handle -------------------------------------