View/Trap/mainWindow.py
def updateTimes(self,data):
        """Updates the plots of the timetraces.
        """
        #Check the sizes of the variances
        var = copy.copy(data)
        for i in range(len(var)):
            xdata = np.arange(len(var[i]))*self._session.monitorTimeresol/1000
            old_data = self.data[i]
            old_t = self.t[i]
            self.t[i] = np.append(self.t[i], xdata+max(self.t[i]) + self._session.monitorTimeresol/1000)
            self.data[i] = np.append(self.data[i],var[i])
            limit = int(self._session.monitorTime/self._session.monitorTimeresol*1000)
            if self.firstMon[i]:
                limit = len(self.t[i])-1
                self.firstMon[i] = False
            self.t[i] = self.t[i][-limit:]
            self.data[i] = self.data[i][-limit:]

        self.qpdx.setData(self.t[0],self.data[0])
        self.qpdy.setData(self.t[1],self.data[1])
        self.qpdz.setData(self.t[2],self.data[2])
Updates the plots of the timetraces.
        
Updates the plots of the timetraces.
Updates the plots of the timetraces .
def updateTimes(self,data):
        var = copy.copy(data)
        for i in range(len(var)):
            xdata = np.arange(len(var[i]))*self._session.monitorTimeresol/1000
            old_data = self.data[i]
            old_t = self.t[i]
            self.t[i] = np.append(self.t[i], xdata+max(self.t[i]) + self._session.monitorTimeresol/1000)
            self.data[i] = np.append(self.data[i],var[i])
            limit = int(self._session.monitorTime/self._session.monitorTimeresol*1000)
            if self.firstMon[i]:
                limit = len(self.t[i])-1
                self.firstMon[i] = False
            self.t[i] = self.t[i][-limit:]
            self.data[i] = self.data[i][-limit:]
        self.qpdx.setData(self.t[0],self.data[0])
        self.qpdy.setData(self.t[1],self.data[1])
        self.qpdz.setData(self.t[2],self.data[2])
def updateTimes ( self , data ) : var = copy . copy ( data ) for i in range ( len ( var ) ) : xdata = np . arange ( len ( var [ i ] ) ) * self . _session . monitorTimeresol / 1000 old_data = self . data [ i ] old_t = self . t [ i ] self . t [ i ] = np . append ( self . t [ i ] , xdata + max ( self . t [ i ] ) + self . _session . monitorTimeresol / 1000 ) self . data [ i ] = np . append ( self . data [ i ] , var [ i ] ) limit = int ( self . _session . monitorTime / self . _session . monitorTimeresol * 1000 ) if self . firstMon [ i ] : limit = len ( self . t [ i ] ) - 1 self . firstMon [ i ] = False self . t [ i ] = self . t [ i ] [ - limit : ] self . data [ i ] = self . data [ i ] [ - limit : ] self . qpdx . setData ( self . t [ 0 ] , self . data [ 0 ] ) self . qpdy . setData ( self . t [ 1 ] , self . data [ 1 ] ) self . qpdz . setData ( self . t [ 2 ] , self . data [ 2 ] )
Updates the plots of the timetraces.
Updates the plots of the timetraces .
"""Updates the plots of the timetraces.
        """ #Check the sizes of the variances
self
data