old_code/current_load.py
def checkAndChangeLoads(self, atTime, atVCDU):
        """When required, switch to a new set of loads.
        """
        # Allow atVCDU to be zero
        klast = len(self.svrdb) - 1
        if (not atVCDU is None and (atVCDU >= self.nextFirstVCDU
                                    or atVCDU >= self.stateVCDU(klast))
            or
            atTime and (atTime >= self.nextFirstTime
                        or atTime >= self.stateTime(klast))):
            # New loads should be ready
            if self.nextLoads:
                # Switch to new loads
                self.slurpState(self.nextLoads)
                self.checkForNewLoads()
            else:
                raise CurrentLoadException("No new loads found")
When required, switch to a new set of loads.
        
When required, switch to a new set of loads.
When required switch to a new set of loads .
def checkAndChangeLoads(self, atTime, atVCDU):
        klast = len(self.svrdb) - 1
        if (not atVCDU is None and (atVCDU >= self.nextFirstVCDU
                                    or atVCDU >= self.stateVCDU(klast))
            or
            atTime and (atTime >= self.nextFirstTime
                        or atTime >= self.stateTime(klast))):
            if self.nextLoads:
                self.slurpState(self.nextLoads)
                self.checkForNewLoads()
            else:
                raise CurrentLoadException("No new loads found")
def checkAndChangeLoads ( self , atTime , atVCDU ) : klast = len ( self . svrdb ) - 1 if ( not atVCDU is None and ( atVCDU >= self . nextFirstVCDU or atVCDU >= self . stateVCDU ( klast ) ) or atTime and ( atTime >= self . nextFirstTime or atTime >= self . stateTime ( klast ) ) ) : if self . nextLoads : self . slurpState ( self . nextLoads ) self . checkForNewLoads ( ) else : raise CurrentLoadException ( "No new loads found" )
When required, switch to a new set of loads.
When required switch to a new set of loads .
"""When required, switch to a new set of loads.
        """ # Allow atVCDU to be zero # New loads should be ready # Switch to new loads
self
atTime
atVCDU