#NEWLINE# def _parse_dimensions( self , dims ) : #NEWLINE# #INDENT# if isinstance ( dims , basestring ) : #NEWLINE# #INDENT# dims = ( dims , ) #NEWLINE# #UNINDENT# dims = tuple ( dims ) #NEWLINE# if ( len ( dims ) != self . ndim ) : #NEWLINE# #INDENT# raise ValueError ( ( 'dimensions %s must have the same length as the number of data dimensions, ndim=%s' % ( self , self . ndim ) ) ) #NEWLINE# #UNINDENT# return dims