#NEWLINE# def __returndata( self ) : #NEWLINE# #INDENT# '\n        Return data or emulated data after error checking\n        ' #NEWLINE# if ( '_data' not in self . __dict__ ) : #NEWLINE# #INDENT# raise IOError ( 'converter not loaded with data' ) #NEWLINE# #UNINDENT# if ( '_udic' not in self . __dict__ ) : #NEWLINE# #INDENT# raise IOError ( 'converter not loaded with dictionary' ) #NEWLINE# #UNINDENT# if ( '_iproc' not in self . __dict__ ) : #NEWLINE# #INDENT# raise IOError ( 'converter not loaded with processing parameters' ) #NEWLINE# #UNINDENT# if ( '_oproc' not in self . __dict__ ) : #NEWLINE# #INDENT# raise IOError ( 'converter not loaded with processing parameters' ) #NEWLINE# #UNINDENT# if ( '_odtype' not in self . __dict__ ) : #NEWLINE# #INDENT# raise IOError ( 'converter not loaded with output dtype' ) #NEWLINE# #UNINDENT# if ( self . _data . dtype . kind != np . dtype ( self . _odtype ) . kind ) : #NEWLINE# #INDENT# warn ( 'Incompatible dtypes, conversion not recommended' ) #NEWLINE# #UNINDENT# if isinstance ( self . _data , np . ndarray ) : #NEWLINE# #INDENT# return self . __procdata ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# iproc = self . _iproc #NEWLINE# oproc = self . _oproc #NEWLINE# odtype = self . _odtype #NEWLINE# order = self . _data . order #NEWLINE# return udata_nd ( iproc . _data , iproc , oproc , odtype , order )