def get_var_shape(self, name):
rank = self.get_var_rank(name)<EOL>name = create_string_buffer(name)<EOL>arraytype = ndpointer(dtype='<STR_LIT>',<EOL>ndim=<NUM_LIT:1>,<EOL>shape=(MAXDIMS, ),<EOL>flags='<STR_LIT:F>')<EOL>shape = np.empty((MAXDIMS, ), dtype='<STR_LIT>', order='<STR_LIT:F>')<EOL>self.library.get_var_shape.argtypes = [c_char_p, arraytype]<EOL>self.library.get_var_shape(name, shape)<EOL>return tuple(shape[:rank])<EOL>
Return shape of the array.