Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
km3io
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
km3py
km3io
Commits
469ff973
Commit
469ff973
authored
5 years ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Simplify init of gseagen reader
parent
541e32bd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
km3io/gseagen.py
+4
-7
4 additions, 7 deletions
km3io/gseagen.py
with
4 additions
and
7 deletions
km3io/gseagen.py
+
4
−
7
View file @
469ff973
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment