예제 #1
0
 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
예제 #2
0
 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
예제 #3
0
    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()
예제 #4
0
    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()
예제 #5
0
 def plotFile(self, iFileName):
     self.m_Parser = cBayesactSimBuffer()
     self.m_Parser.parseFile(iFileName)
     self.plotBufferedData()
예제 #6
0
 def plotFile(self, iFileName):
     self.m_Parser = cBayesactSimBuffer()
     self.m_Parser.parseFile(iFileName)
     self.plotBufferedData()