Get a range specific for the index usage.
(
self, start: int | None, stop: int | None, step: int | None
)
| 2053 | return self.read_sorted_indices("indices", start, stop, step) |
| 2054 | |
| 2055 | def _process_range( |
| 2056 | self, start: int | None, stop: int | None, step: int | None |
| 2057 | ) -> tuple[int, int, int]: |
| 2058 | """Get a range specific for the index usage.""" |
| 2059 | if start is not None and stop is None: |
| 2060 | # Special case for the behaviour of PyTables iterators |
| 2061 | stop = idx2long(start + 1) |
| 2062 | if start is None: |
| 2063 | start = 0 |
| 2064 | else: |
| 2065 | start = idx2long(start) |
| 2066 | if stop is None: |
| 2067 | stop = idx2long(self.nelements) |
| 2068 | else: |
| 2069 | stop = idx2long(stop) |
| 2070 | if step is None: |
| 2071 | step = 1 |
| 2072 | else: |
| 2073 | step = idx2long(step) |
| 2074 | return (start, stop, step) |
| 2075 | |
| 2076 | def __getitem__(self, key: int | slice) -> int | np.ndarray: |
| 2077 | """Return the indices values of index in the specified range. |
no test coverage detected