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

Method __init__

tables/atom.py:881–887  ·  view source on GitHub ↗
(
        self, itemsize: int, shape: Shape = (), dflt: Any = _defvalue
    )

Source from the content-addressed store, hash-verified

879 _isizes.append(32)
880
881 def __init__(
882 self, itemsize: int, shape: Shape = (), dflt: Any = _defvalue
883 ) -> None:
884 if itemsize not in self._isizes:
885 raise _invalid_itemsize_error("complex", itemsize, self._isizes)
886 self.type = "%s%d" % (self.kind, itemsize * 8)
887 Atom.__init__(self, self.type, shape, dflt)
888
889
890class _ComplexErrorAtom(ComplexAtom, metaclass=type):

Callers

nothing calls this directly

Calls 2

_invalid_itemsize_errorFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected