elif strategy == "calc" and len(calcProblems) < trials: calcTemp.append(ns) problemHeap.append(ns) subject.inputData(trial, "verified", 0) elif strategy == "calc": subject.inputData(trial, "verified", 0) calcTemp.append(ns) #if we have enough memory or calcs, take those suckas out of the heap if len(memProblems) >= trials: problemHeap = calcTemp elif len(calcProblems) >= trials: problemHeap = memTemp else: incorrects.append(problem) subject.inputData(trial, "verified", "NA") trial = trial + 1 subject.printData() #save sub subject.printData() subject.memProblems = memProblems subject.calcProblems = calcProblems subject.preserve()
subject.inputData(trial, "verified", 1) elif strategy == "calc" and len(calcProblems) < trials: calcTemp.append(ns) problemHeap.append(ns) subject.inputData(trial, "verified", 0) elif strategy == "calc": subject.inputData(trial, "verified", 0) calcTemp.append(ns) #if we have enough memory or calcs, take those suckas out of the heap if len(memProblems) >= trials: problemHeap = calcTemp elif len(calcProblems) >= trials: problemHeap = memTemp else: incorrects.append(problem) subject.inputData(trial, "verified", "NA") trial = trial + 1 subject.printData() #save sub subject.printData() subject.memProblems = memProblems subject.calcProblems = calcProblems subject.preserve()