#NEWLINE# def __fgetitem__( self , slices ) : #NEWLINE# #INDENT# '\n        Return ndarray of selected values\n\n        slices is a well formatted tuple of slices\n        ' #NEWLINE# lslice = slices [ ( - 1 ) ] #NEWLINE# fslice = slices [ : ( - 1 ) ] #NEWLINE# lfshape = self . fshape [ ( - 1 ) ] #NEWLINE# ffshape = self . fshape [ : ( - 1 ) ] #NEWLINE# ( osize , nd_iter ) = fileiobase . size_and_ndtofrom_iter ( ffshape , fslice ) #NEWLINE# osize . append ( len ( range ( lfshape ) [ lslice ] ) ) #NEWLINE# out = np . empty ( tuple ( osize ) , dtype = self . dtype ) #NEWLINE# f = open ( self . filename , 'rb' ) #NEWLINE# for ( out_index , in_index ) in nd_iter : #NEWLINE# #INDENT# ntrace = self . i2t ( ffshape , in_index ) #NEWLINE# f . seek ( ( ( ntrace * self . bbytes ) + 32 ) ) #NEWLINE# trace = get_block ( f , self . pts , self . nbh , self . fdtype , False ) #NEWLINE# trace = uninterleave_data ( trace ) #NEWLINE# out [ out_index ] = trace [ lslice ] #NEWLINE# #UNINDENT# return out