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

Cleanup

parent 740c9c77
No related branches found
No related tags found
1 merge request!21Resolve "Reduce the amount of uproot.open (to one)"
Pipeline #9212 passed with warnings
......@@ -211,10 +211,8 @@ class OfflineReader:
path-like object that points to the file.
"""
self._file_path = file_path
if file_path is not None:
self._fobj = uproot.open(self._file_path)
self._fobj = uproot.open(file_path)
self._tree = self._fobj[MAIN_TREE_NAME]
self._data = self._tree.lazyarrays(
basketcache=uproot.cache.ThreadSafeArrayCache(
......
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