#NEWLINE# def _dataslice( self , data , indices ) : #NEWLINE# #INDENT# '\n        Returns slice of data element if the item is deep\n        indexable. Warns if attempting to slice an object that has not\n        been declared deep indexable.\n        ' #NEWLINE# if ( isinstance ( data , Dimensioned ) and indices ) : #NEWLINE# #INDENT# return data [ indices ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( len ( indices ) > 0 ) : #NEWLINE# #INDENT# self . warning ( 'Cannot index into data element, extra data indices ignored.' ) #NEWLINE# #UNINDENT# #UNINDENT# return data