#NEWLINE# def _get_channel( self , channel_number ) : #NEWLINE# #INDENT# 'Returns slice into internal memmap for requested channel' #NEWLINE# try : #NEWLINE# #INDENT# mm_index = self . header . Channel_ID . index ( channel_number ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# logging . info ( ( 'Channel number %d does not exist' % channel_number ) ) #NEWLINE# return np . array ( [ ] ) #NEWLINE# #UNINDENT# self . regenerate_memmap ( ) #NEWLINE# return self . _mm [ : , mm_index ]