MCPcopy Create free account
hub / github.com/PyTables/PyTables / __init__

Method __init__

tables/nodes/filenode.py:48–65  ·  view source on GitHub ↗
(self, node, mode=None)

Source from the content-addressed store, hash-verified

46 ]
47
48 def __init__(self, node, mode=None):
49 super().__init__()
50
51 self._check_node(node)
52 self._check_attributes(node)
53
54 if mode is None:
55 mode = node._v_file.mode
56 else:
57 self._check_mode(mode)
58 self._cross_check_mode(mode, node._v_file.mode)
59
60 self._node = node
61 self._mode = mode
62 self._pos = 0
63 self._version = int(node.attrs.NODE_TYPE_VERSION)
64 self._vshape = self._size_to_shape[self._version]
65 self._vtype = node.atom.dtype.base.type
66
67 # read only attribute
68 @property

Callers

nothing calls this directly

Calls 5

_check_nodeMethod · 0.95
_check_attributesMethod · 0.95
_check_modeMethod · 0.95
_cross_check_modeMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected