def analyzeSamples(sams, repoManager): samples.reset() conclusions.reset() samples._repomanager = repoManager samples.sampleList = [samples.CalvinSample(sample) for sample in sams] if not initial_polling.setInitialData(): return for landform in samples.landformQueue: samples.softReset() samples.landformData = landform[0].copy() samples.confidenceEntry = landform[1].copy() samples.sampleList = landform[2][:] args = engine.explainAges() #more horrible horrible hackiness whee! frame = main_window.CalvinFrame() frame.showArguments(args, landform) frame.Show()
def pollForData(self, evt): samples.landformData = self.sampleStuff[0].copy() samples.confidenceEntry = self.sampleStuff[1].copy() samples.sampleList = self.sampleStuff[2][:] samples.landformPoll = self.pollData[0][:] samples.samplePoll = self.pollData[1][:] user_polling.doLandformPolling() user_polling.doSamplePolling() self.Show(False) conclusions.reset() args = engine.explainAges() newWindow = CalvinFrame() newWindow.showArguments(args, self.sampleStuff) newWindow.Show() self.Close() self.Destroy()