Browse files

self.canCL is unset if hasCL or self.wantCL is not True

Added an else statement to the check for hasCL and self.wantCL so when
the test fails, self.canCL is set to false.  Closes #12.

This patch sets the
  • Loading branch information...
1 parent 4fe9ddd commit a84b66f0e46dd0735d62822f16d9ee4b5f081c12 @mathuin committed Sep 10, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0
@@ -80,6 +80,8 @@ def __init__(self, coords, values, base, wantCL=True, split=None, nnear=None, ma
print "warning: unable to use pyopencl, defaulting to Invdisttree"
self.canCL = False
+ else:
+ self.canCL = False
if nnear == None:
self.nnear = np.int32(CLIDT.nnear)

0 comments on commit a84b66f

Please sign in to comment.