Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
dtype = level._v_attrs.zeroarray_dtype
node = NumpyArrayNode(tuple(level), _format_dtype(dtype))
elif hasattr(level._v_attrs, 'strtype'):
strtype = level._v_attrs.strtype
itemsize = level._v_attrs.itemsize
if strtype == b'unicode':
shape = level.shape[:-1] + (level.shape[-1] // itemsize // 4,)
elif strtype == b'ascii':
shape = level.shape
node = NumpyArrayNode(shape, strtype.decode('ascii'))
return node
elif isinstance(level, tables.link.SoftLink):
node = SoftLinkNode(level.target)
return node
else:
return Node()