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

Method read_slice_lr

tables/index.py:1512–1519  ·  view source on GitHub ↗

Read a slice from the `where` dataset and put it in `buffer`.

(
        self, where: Array, buffer: np.ndarray, start: int = 0
    )

Source from the content-addressed store, hash-verified

1510
1511 # Read version for LastRow
1512 def read_slice_lr(
1513 self, where: Array, buffer: np.ndarray, start: int = 0
1514 ) -> None:
1515 """Read a slice from the `where` dataset and put it in `buffer`."""
1516 startl = np.array([start], dtype=np.uint64)
1517 stopl = np.array([start + buffer.size], dtype=np.uint64)
1518 stepl = np.array([1], dtype=np.uint64)
1519 where._g_read_slice(startl, stopl, stepl, buffer)
1520
1521 # Write version for LastRow
1522 def write_slice_lr(

Callers 3

initial_appendMethod · 0.95
reorder_slicesMethod · 0.95
read_sorted_indicesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected