#NEWLINE# def __getitem__( self , idx_or_name ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return numpy . ndarray . __getitem__ ( self , idx_or_name ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# return numpy . ndarray . __getitem__ ( idx_or_name , self . attr . index ( idx_or_name ) ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raise KeyError ( ( 'No key "%s" available for array' % idx_or_name ) )