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

Add arrays

parent 324801d4
No related branches found
No related tags found
No related merge requests found
Pipeline #16505 passed with warnings
Unreleased changes
------------------
* Add ``Branch.arrays()`` for high-level access of ``uproot.TBranch.arrays()``
Version 0
---------
......
......@@ -384,6 +384,10 @@ class Branch:
# ignore the usual index magic and access `id` directly
return len(self.id)
def arrays(self, *args, **kwargs):
"""High-level interface to uproots arrays call on branches"""
return self._branch.arrays(*args, **kwargs, aliases=self._aliases)
def __actual_len__(self):
"""The raw number of events without any indexing/slicing magic"""
return len(self._branch[self._aliases["id"]].array())
......
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