old_code/current_load.py
def binaryGetStateAtVCDU(self, atVCDU):
        """Get the state vector at the specified VCDU.
        """
        self.checkAndChangeLoads(None, atVCDU)

        klo = CurrentLoad.startIndex
        khi = len(self.svrdb)
        while khi > klo + 1:
            k = (klo + khi) / 2
            vcdu = self.stateVCDU(k)
            if deltaVCDU(vcdu, atVCDU) >= 0:
                klo = k
            else:
                khi = k
        self.currentStateIndex = klo
        return self.svrdb[self.currentStateIndex]
Get the state vector at the specified VCDU.
        
Get the state vector at the specified VCDU.
Get the state vector at the specified VCDU .
def binaryGetStateAtVCDU(self, atVCDU):
        self.checkAndChangeLoads(None, atVCDU)
        klo = CurrentLoad.startIndex
        khi = len(self.svrdb)
        while khi > klo + 1:
            k = (klo + khi) / 2
            vcdu = self.stateVCDU(k)
            if deltaVCDU(vcdu, atVCDU) >= 0:
                klo = k
            else:
                khi = k
        self.currentStateIndex = klo
        return self.svrdb[self.currentStateIndex]
def binaryGetStateAtVCDU ( self , atVCDU ) : self . checkAndChangeLoads ( None , atVCDU ) klo = CurrentLoad . startIndex khi = len ( self . svrdb ) while khi > klo + 1 : k = ( klo + khi ) / 2 vcdu = self . stateVCDU ( k ) if deltaVCDU ( vcdu , atVCDU ) >= 0 : klo = k else : khi = k self . currentStateIndex = klo return self . svrdb [ self . currentStateIndex ]
Get the state vector at the specified VCDU.
Get the state vector at the specified VCDU .
"""Get the state vector at the specified VCDU.
        """
self
atVCDU