fig a bug.

This commit is contained in:
Haiming Zhang 2015-07-21 15:38:12 +00:00
parent 331a4c5775
commit b15f68905f
1 changed files with 3 additions and 3 deletions

View File

@ -77,9 +77,9 @@ def kdtree_search(xyz, point) :
return dist return dist
def generatePoint() : def generatePoint() :
return np.array([random.uniform(0,options.grid[0]/max(options.grid)), \ return np.array([random.uniform(0,float(options.grid[0])/float(max(options.grid))), \
random.uniform(0,options.grid[1]/max(options.grid)), \ random.uniform(0,float(options.grid[1])/float(max(options.grid))), \
random.uniform(0,options.grid[2]/max(options.grid))]) random.uniform(0,float(options.grid[2])/float(max(options.grid)))])
# ------------------------------------------ setup file handle ------------------------------------- # ------------------------------------------ setup file handle -------------------------------------