MCPcopy Index your code
hub / github.com/PyTables/PyTables / _get_container

Method _get_container

tables/table.py:1011–1014  ·  view source on GitHub ↗

Get the appropriate buffer for data depending on table nestedness.

(self, shape: int)

Source from the content-addressed store, hash-verified

1009 return arr
1010
1011 def _get_container(self, shape: int) -> np.ndarray:
1012 """Get the appropriate buffer for data depending on table nestedness."""
1013 # This is *much* faster than the numpy.rec.array counterpart
1014 return np.empty(shape=shape, dtype=self._v_dtype)
1015
1016 def _get_type_col_names(self, type_: str) -> list[str]:
1017 """Return a list containing 'type_' column names."""

Callers 5

_v_iobufMethod · 0.95
_v_wdfltsMethod · 0.95
_colunalignedMethod · 0.95
_readMethod · 0.95
_read_coordinatesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected