(self, img)
return phi
Return a phi (sequence of image frames), using the last phi_length -
    1, plus img.
Return a phi (sequence of image frames), using the last phi_length -
    1, plus img.
Return a phi ( sequence of image frames ) using the last phi_length - 1 plus img .
def phi(self, img):
    """Return a phi (sequence of image frames), using the last phi_length -
    1, plus img.

    """
    indexes = np.arange(self.top - self.phi_length + 1, self.top)

    phi = np.empty((self.phi_length, self.height, self.width), dtype=floatX)
    phi[0:self.phi_length - 1] = self.imgs.take(indexes,
                          axis=0,
                          mode='wrap')
    phi[-1] = img
    return phi
def phi ( self , img ) : indexes = np . arange ( self . top - self . phi_length + 1 , self . top ) phi = np . empty ( ( self . phi_length , self . height , self . width ) , dtype = floatX ) phi [ 0 : self . phi_length - 1 ] = self . imgs . take ( indexes , axis = 0 , mode = 'wrap' ) phi [ - 1 ] = img return phi