#NEWLINE# def asarray( self , copy = True , cache = False , **kwargs ) : #NEWLINE# #INDENT# 'Return image data from file as numpy array.' #NEWLINE# data = self . _data #NEWLINE# if ( data is None ) : #NEWLINE# #INDENT# data = self . _read_data ( self . _fh , ** kwargs ) #NEWLINE# if cache : #NEWLINE# #INDENT# self . _data = data #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return data #NEWLINE# #UNINDENT# #UNINDENT# return ( deepcopy ( data ) if copy else data )