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

Method _init_loop

tables/vlarray.py:619–625  ·  view source on GitHub ↗

Initialize the __iter__ iterator.

(self)

Source from the content-addressed store, hash-verified

617 return self
618
619 def _init_loop(self) -> None:
620 """Initialize the __iter__ iterator."""
621 self._nrowsread = self._start
622 self._startb = self._start
623 self._row = -1 # Sentinel
624 self._init = True # Sentinel
625 self.nrow = SizeType(self._start - self._step) # row number
626
627 def __next__(self) -> list | np.ndarray:
628 """Get the next element of the array during an iteration.

Callers 2

iterrowsMethod · 0.95
__iter__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected