def _get_array_attrs(self, mk=None):
    dtype = ('Float32' if (self.dtype == np.float32) else 'Float64')
    dsize = np.dtype(self.dtype).itemsize
    ndims = self.ndims
    vvars = self.elementscls.visvarmap[ndims]
    names = ['', 'connectivity', 'offsets', 'types']
    types = [dtype, 'Int32', 'Int32', 'UInt8']
    comps = ['3', '', '', '']
    for (fname, varnames) in vvars.items():
        names.append(fname.capitalize())
        types.append(dtype)
        comps.append(str(len(varnames)))
    if mk:
        (npts, ncells, nnodes) = self._get_npts_ncells_nnodes(mk)
        nb = (npts * dsize)
        sizes = [(3 * nb), (4 * nnodes), (4 * ncells), ncells]
        sizes.extend(((len(varnames) * nb) for varnames in vvars.values()))
        return (names, types, comps, sizes)
    else:
        return (names, types, comps)
def _get_array_attrs(self, mk=None):
    dtype = ('Float32' if (self.dtype == np.float32) else 'Float64')
    dsize = np.dtype(self.dtype).itemsize
    ndims = self.ndims
    vvars = self.elementscls.visvarmap[ndims]
    names = [, 'connectivity', 'offsets', 'types']
    types = [dtype, 'Int32', 'Int32', 'UInt8']
    comps = ['3', , , ]
    for (fname, varnames) in vvars.items():
        names.append(fname.capitalize())
        types.append(dtype)
        comps.append(str(len(varnames)))
    if mk:
        (npts, ncells, nnodes) = self._get_npts_ncells_nnodes(mk)
        nb = (npts * dsize)
        sizes = [(3 * nb), (4 * nnodes), (4 * ncells), ncells]
        sizes.extend(((len(varnames) * nb) for varnames in vvars.values()))
        return (names, types, comps, sizes)
    else:
        return (names, types, comps)