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
d5aad8af
Commit
d5aad8af
authored
5 years ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Remove trailing whitespaces
parent
2f3383b3
No related branches found
Branches containing commit
Tags
v0.5.0
Tags containing commit
No related merge requests found
Pipeline
#6927
canceled
5 years ago
Stage: test
Stage: coverage
Stage: doc
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
km3io/aanet.py
+16
-16
16 additions, 16 deletions
km3io/aanet.py
with
16 additions
and
16 deletions
km3io/aanet.py
+
16
−
16
View file @
d5aad8af
...
...
@@ -12,20 +12,20 @@ class AanetReader:
def
read_event
(
self
,
key
:
str
):
"""
event_reader function reads data stored in a branch of interest in an event tree.
Parameters
----------
key : str
name of the branch of interest in event data.
Returns
-------
lazyarray
Lazyarray of all data stored in a branch of interest (in an event tree). A lazyarray is an array-like
object that reads data on demand. Here, only the first and last chunks of data are
object that reads data on demand. Here, only the first and last chunks of data are
read in memory, and not all data in the array. The output of event_reader can be used
with all `Numpy
'
s universal functions <https://docs.scipy.org/doc/numpy/reference/ufuncs.html>`.
Raises
------
NameError
...
...
@@ -44,20 +44,20 @@ class AanetReader:
def
read_hits
(
self
,
key
:
str
):
"""
hits_reader function reads data stored in a branch of interest in hits tree from an Aanet
event file.
Parameters
----------
hits_key : str
name of the branch of interest in hits tree.
Returns
-------
lazyarray
Lazyarray of all data stored in a branch of interest (in hits tree). A lazyarray is an array-like
object that reads data on demand. Here, only the first and last chunks of data are
object that reads data on demand. Here, only the first and last chunks of data are
read in memory, and not all data in the array. The output of event_reader can be used
with all `Numpy
'
s universal functions <https://docs.scipy.org/doc/numpy/reference/ufuncs.html>`.
Raises
------
NameError
...
...
@@ -75,20 +75,20 @@ class AanetReader:
def
read_tracks
(
self
,
key
:
str
):
"""
tracks_reader function reads data stored in a branch of interest in tracks tree
from an Aanet event file.
Parameters
----------
tracks_key : str
name of the branch of interest in tracks tree.
Returns
-------
lazyarray
Lazyarray of all data stored in a branch of interest (in tracks tree). A lazyarray is an array-like
object that reads data on demand. Here, only the first and last chunks of data are
object that reads data on demand. Here, only the first and last chunks of data are
read in memory, and not all data in the array. The output of event_reader can be used
with all `Numpy
'
s universal functions <https://docs.scipy.org/doc/numpy/reference/ufuncs.html>`.
Raises
------
NameError
...
...
@@ -106,13 +106,13 @@ class AanetReader:
@property
def
valid_keys
(
self
,
evt_tree
):
"""
_event_keys function returns a list of all the keys of interest
for data analysis, and removes the keys of empty
"
fake branches
"
found in Aanet event files.
for data analysis, and removes the keys of empty
"
fake branches
"
found in Aanet event files.
Parameters
----------
evt_tree : aanet event (Evt) tree.
Returns
-------
list of str
...
...
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