old_code/current_load.py
def checkForNewLoads(self):
        """Note the presence of newer loads.
        """
        # Needs to be run periodically - before the new loads commence
        if self.nextLoads:
            dirlist = self.getRecentLoads(self.nextLoads)
        else:
            dirlist = self.getRecentLoads(self.currentLoads)
        if len(dirlist):
            # Assume no more than one new set can be waiting
            nextLoads = dirlist[0]
            # Time of first command in the new loads
            nextStart = self.startTime(nextLoads)
            # Time and VCDU of first entry in the new .svrdb
            # (usually the last entry from the previous loads)
            firstTime, firstVCDU = self.firstTimeVCDU(nextLoads)
            # Discard failures
            if nextStart and firstVCDU:
                self.nextLoads = nextLoads
                self.nextStart = nextStart
                self.nextFirstTime = firstTime
                self.nextFirstVCDU = firstVCDU
Note the presence of newer loads.
        
Note the presence of newer loads.
Note the presence of newer loads .
def checkForNewLoads(self):
        if self.nextLoads:
            dirlist = self.getRecentLoads(self.nextLoads)
        else:
            dirlist = self.getRecentLoads(self.currentLoads)
        if len(dirlist):
            nextLoads = dirlist[0]
            nextStart = self.startTime(nextLoads)
            firstTime, firstVCDU = self.firstTimeVCDU(nextLoads)
            if nextStart and firstVCDU:
                self.nextLoads = nextLoads
                self.nextStart = nextStart
                self.nextFirstTime = firstTime
                self.nextFirstVCDU = firstVCDU
def checkForNewLoads ( self ) : if self . nextLoads : dirlist = self . getRecentLoads ( self . nextLoads ) else : dirlist = self . getRecentLoads ( self . currentLoads ) if len ( dirlist ) : nextLoads = dirlist [ 0 ] nextStart = self . startTime ( nextLoads ) firstTime , firstVCDU = self . firstTimeVCDU ( nextLoads ) if nextStart and firstVCDU : self . nextLoads = nextLoads self . nextStart = nextStart self . nextFirstTime = firstTime self . nextFirstVCDU = firstVCDU
Note the presence of newer loads.
Note the presence of newer loads .
"""Note the presence of newer loads.
        """ # Needs to be run periodically - before the new loads commence # Assume no more than one new set can be waiting # Time of first command in the new loads # Time and VCDU of first entry in the new .svrdb # (usually the last entry from the previous loads) # Discard failures
self