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

Simplify init of gseagen reader

parent 541e32bd
No related branches found
No related tags found
No related merge requests found
......@@ -17,14 +17,11 @@ class GSGReader:
Parameters
----------
file_path : path-like object
Path to the file of interest. It can be a str or any python
path-like object that points to the file.
file_path : file path or file-like object
The file handler. It can be a str or any python path-like object
that points to the file.
"""
if file_path is not None:
self._fobj = uproot.open(file_path)
else:
self._fobj = fobj
self._fobj = uproot.open(file_path)
@cached_property
def header(self):
......
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