def __getitem__(self, index):
        """ Searches both point and cell data for an array """
        if isinstance(index, collections.Iterable) and not isinstance(index, str):
            name, preference = index[0], index[1]
        elif isinstance(index, str):
            name = index
            preference = 'cell'
        else:
            raise KeyError('Index ({}) not understood. Index must be a string name or a tuple of string name and string preference.'.format(index))
        return self.get_scalar(name, preference=preference, info=False)
def __getitem__ ( self , index ) : if isinstance ( index , collections . Iterable ) and not isinstance ( index , str ) : name , preference = index [ 0 ] , index [ 1 ] elif isinstance ( index , str ) : name = index preference = 'cell' else : raise KeyError ( 'Index ({}) not understood. Index must be a string name or a tuple of string name and string preference.' . format ( index ) ) return self . get_scalar ( name , preference = preference , info = False )
Searches both point and cell data for an array