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

Method from_atom

tables/description.py:92–106  ·  view source on GitHub ↗

Create a Col definition from a PyTables atom. An optional position may be specified as the pos argument.

(
        cls,
        atom: atom.Atom,
        pos: int | None = None,
        _offset: int | None = None,
    )

Source from the content-addressed store, hash-verified

90
91 @classmethod
92 def from_atom(
93 cls,
94 atom: atom.Atom,
95 pos: int | None = None,
96 _offset: int | None = None,
97 ) -> Col:
98 """Create a Col definition from a PyTables atom.
99
100 An optional position may be specified as the pos argument.
101
102 """
103 prefix = atom.prefix()
104 kwargs = atom._get_init_args()
105 colclass = cls._class_from_prefix[prefix]
106 return colclass(pos=pos, _offset=_offset, **kwargs)
107
108 @classmethod
109 def from_sctype(

Callers 4

from_sctypeMethod · 0.80
from_dtypeMethod · 0.80
from_typeMethod · 0.80
from_kindMethod · 0.80

Calls 2

prefixMethod · 0.45
_get_init_argsMethod · 0.45

Tested by

no test coverage detected