Skip to content
Permalink
Browse files

Removed debugging prints.

  • Loading branch information...
rhyolight committed Aug 15, 2016
1 parent 8d22a78 commit 2c4c95d890758e24eab3680c3a6daa6edf581644
Showing with 0 additions and 5 deletions.
  1. +0 −5 nupic_history/sp_redis_client.py
@@ -91,19 +91,14 @@ def getLayerStateByIteration(self, spid, stateType, iteration):


def getActiveColumnsByColumn(self, spid, columnIndex, maxIteration):
print columnIndex
print type(columnIndex)
out = []
searchKey = self.GLOBAL_VALS.format(spid, "*", SNAPS.ACT_COL)
print "searching for {}".format(searchKey)
keys = self._redis.keys(searchKey)
for iteration in xrange(0, maxIteration):
possibleKey = self.GLOBAL_VALS.format(spid, iteration, SNAPS.ACT_COL)
print possibleKey
found = None
if possibleKey in keys:
activeColumns = self._getSnapshot(SNAPS.ACT_COL, possibleKey)
print activeColumns
if columnIndex in activeColumns["indices"]:
found = 1
else:

0 comments on commit 2c4c95d

Please sign in to comment.
You can’t perform that action at this time.