def bufferData(self): self.m_Parser = cBayesactSimBuffer() self.m_ParserThread = threading.Thread(target=self.m_Parser.run) self.m_ParserThread.daemon=True self.m_ParserThread.start() while(self.m_Parser.m_BufferThreshold < len(self.m_Parser.m_SamplesBuffer)): print self.m_Parser.m_BufferThreshold
def bufferData(self): self.m_Parser = cBayesactSimBuffer() self.m_ParserThread = threading.Thread(target=self.m_Parser.run) self.m_ParserThread.daemon = True self.m_ParserThread.start() while (self.m_Parser.m_BufferThreshold < len( self.m_Parser.m_SamplesBuffer)): print self.m_Parser.m_BufferThreshold
def runOnPlot(self): # It is possible that you may preload data for the plot in the buffer # and then assign this plotter to a plot # This statement here prevents it though if (None == self.m_PlotEPAPanels[0]): # Thread ends return self.m_Parser = cBayesactSimBuffer() self.m_ParserThread = threading.Thread(target=self.m_Parser.run, kwargs={"iFileName" : None}) self.m_ParserThread.daemon=True self.m_ParserThread.start() while(self.m_KeepAlive): while (not(self.m_Sleep)): self.plotBayesactSim(self.m_Parser.getSamples()) self.killProcess()
def runOnPlot(self): # It is possible that you may preload data for the plot in the buffer # and then assign this plotter to a plot # This statement here prevents it though if (None == self.m_PlotPanels[0]): # Thread ends return self.m_Parser = cBayesactSimBuffer() self.m_ParserThread = threading.Thread(target=self.m_Parser.run, kwargs={"iFileName": None}) self.m_ParserThread.daemon = True self.m_ParserThread.start() while (self.m_KeepAlive): while (not (self.m_Sleep)): self.plotBayesactSim(self.m_Parser.getSamples()) self.killProcess()
def plotFile(self, iFileName): self.m_Parser = cBayesactSimBuffer() self.m_Parser.parseFile(iFileName) self.plotBufferedData()