added some logging to hunt down why q wasn't being populated

This commit is contained in:
Stephen McQuay 2011-02-15 15:22:28 -07:00
parent d0e8d11156
commit bb174094ab

View File

@ -27,9 +27,13 @@ class grid(object):
if verts != None:
self.verts = np.array(verts)
self.tree = KDTree(self.verts)
if q:
self.tree = KDTree(self.verts)
if q != None:
log.debug("found q")
self.q = np.array(q)
else:
log.debug("no q")
self.cells = {}
self.cells_for_vert = defaultdict(list)