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,
)
| 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( |
no test coverage detected