Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _group_cls(self):
return Group
zlib = False
fletcher32 = False
shuffle = False
if datatype is str:
datatype = h5py.special_dtype(vlen=unicode)
kwds = {}
if zlib:
# only add compression related keyword arguments if relevant (h5py
# chokes otherwise)
kwds['compression'] = 'gzip'
kwds['compression_opts'] = complevel
kwds['shuffle'] = shuffle
return super(Group, self).create_variable(
varname, dimensions, dtype=datatype, fletcher32=fletcher32,
chunks=chunksizes, fillvalue=fill_value, **kwds)