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

Add docstring

parent 3a913f81
No related branches found
No related tags found
1 merge request!21Resolve "Reduce the amount of uproot.open (to one)"
Pipeline #9210 passed with warnings
......@@ -226,6 +226,15 @@ class OfflineReader:
@classmethod
def from_index(cls, source, index):
"""Create an instance with a subtree of a given index
Parameters
----------
source: ROOTDirectory
The source file.
index: index or slice
The index or slice to create the subtree.
"""
instance = cls(fobj=source._fobj, data=source._data[index])
return instance
......
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