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

Method _g_create

tables/carray.py:226–231  ·  view source on GitHub ↗

Create a new array in file (specific part).

(self)

Source from the content-addressed store, hash-verified

224 )
225
226 def _g_create(self) -> int:
227 """Create a new array in file (specific part)."""
228 if min(self.shape) < 1:
229 raise ValueError("shape parameter cannot have zero-dimensions.")
230 # Finish the common part of creation process
231 return self._g_create_common(self.nrows)
232
233 def _g_create_common(self, expectedrows: int) -> int:
234 """Create a new array in file (common part)."""

Callers

nothing calls this directly

Calls 1

_g_create_commonMethod · 0.95

Tested by

no test coverage detected