Skip to content
Snippets Groups Projects
Commit e7889c2e authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Fix lazyarray access

parent c07874f4
No related branches found
No related tags found
1 merge request!27Refactor offline I/O
......@@ -606,9 +606,10 @@ class Branch:
})
if isinstance(item, tuple):
return self[item[0]][item[1]]
return self._branch[self._keymap[item]].lazyarray(
basketcache=uproot.cache.ThreadSafeArrayCache(BASKET_CACHE_SIZE))[
self._index]
out = self._branch[self._keymap[item]].lazyarray(
basketcache=uproot.cache.ThreadSafeArrayCache(BASKET_CACHE_SIZE))
if self._index != slice(None):
out[self._index]
def __len__(self):
if self._index == slice(None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment