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: ...@@ -17,14 +17,11 @@ class GSGReader:
Parameters Parameters
---------- ----------
file_path : path-like object file_path : file path or file-like object
Path to the file of interest. It can be a str or any python The file handler. It can be a str or any python path-like object
path-like object that points to the file. that points to the file.
""" """
if file_path is not None: self._fobj = uproot.open(file_path)
self._fobj = uproot.open(file_path)
else:
self._fobj = fobj
@cached_property @cached_property
def header(self): def header(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment