#NEWLINE# def get_frame( self , j ) : #NEWLINE# #INDENT# 'Extracts the jth frame from the image sequence.\n        if the frame does not exist return None' #NEWLINE# im = Image . open ( self . _name_template . format ( ind = ( j + self . _offset ) ) ) #NEWLINE# return np . reshape ( im . getdata ( ) , self . _im_sz ) . astype ( im . _dtype )