From 469ff97364684fd48570143d5734ddd72df02464 Mon Sep 17 00:00:00 2001 From: Tamas Gal <tgal@km3net.de> Date: Sun, 29 Mar 2020 23:07:53 +0200 Subject: [PATCH] Simplify init of gseagen reader --- km3io/gseagen.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/km3io/gseagen.py b/km3io/gseagen.py index 01e3a0f..29d8db7 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): -- GitLab