diff --git a/km3io/gseagen.py b/km3io/gseagen.py index 01e3a0fd1d2ea7acfdef888aef6e94e56417c741..29d8db7882e4507bb9108c3031a55f35c448e796 100644 --- a/km3io/gseagen.py +++ b/km3io/gseagen.py @@ -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):