Ejemplo n.º 1
0
def test_without_networking(lp):
    d = dict()
    activityDict = dict()
    counter = 0
    while True:
        counter += 1
        test = rndMedKnocks(lp, threshold=0.05)
        data = test.run('Sensless Crap Argument Stub')
        d = sumDicts(d, data[0])
        activityDict = sumDicts(activityDict, data[1])
        print d, activityDict
Ejemplo n.º 2
0
 def run(self):
     counter = 0
     while True:
         counter = counter + 1
         print "Getting Data from Queue", self.queue
         print "The OutputQueue is that big: ", self.queue.qsize()
         data = self.queue.get()
         self.activityDict = sumDicts(self.activityDict, data[0])
         self.koDict = sumDicts(self.koDict, data[1])
         print self.koDict
         print self.activityDict
         path = self.prefix + "dict" + str(counter) + ".txt"
         print "writing to " + path
         open(path, "w").write(dict2tsv(self.activityDict) + "\n" + dict2tsv(self.koDict) + "\n" + dict2tsv(data[2]))