We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79cd7ab commit c6cccddCopy full SHA for c6cccdd
1 file changed
src/blosc2/schunk.py
@@ -676,15 +676,7 @@ def get_chunk(self, nchunk: int) -> bytes:
676
677
def get_vlblock(self, nchunk: int, nblock: int) -> bytes:
678
"""Return the decompressed payload of one VL block from a chunk."""
679
- get_vlblock = getattr(super(), "get_vlblock", None)
680
- if get_vlblock is not None:
681
- return get_vlblock(nchunk, nblock)
682
-
683
- block_payloads = blosc2_ext.vldecompress(self.get_chunk(nchunk), **asdict(self.dparams))
684
- try:
685
- return block_payloads[nblock]
686
- except IndexError as exc:
687
- raise IndexError("VL block index out of range") from exc
+ return super().get_vlblock(nchunk, nblock)
688
689
def delete_chunk(self, nchunk: int) -> int:
690
"""Delete the specified chunk from the SChunk.
0 commit comments