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
496ad4a7
Commit
496ad4a7
authored
4 years ago
by
Zineb Aly
Browse files
Options
Downloads
Patches
Plain Diff
add docs
parent
c8de0f68
No related branches found
No related tags found
No related merge requests found
Pipeline
#12198
passed with warnings
4 years ago
Stage: test
Stage: coverage
Stage: doc
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
km3io/tools.py
+17
-1
17 additions, 1 deletion
km3io/tools.py
with
17 additions
and
1 deletion
km3io/tools.py
+
17
−
1
View file @
496ad4a7
...
...
@@ -279,7 +279,23 @@ def best_track(tracks, strategy="first", rec_type=None, rec_stages=None):
tracks : class km3io.offline.OfflineBranch
the tracks branch.
strategy : str
the trategy desired to select the best tracks.
the trategy desired to select the best tracks. It is either:
-
"
first
"
: to select the first tracks.
-
"
rec_stages
"
: to select all tracks with a specific reconstruction stages.
This requires the user to specify the reconstruction stages in rec_stages input.
Example: best_track(my_tracks, strategy=
"
rec_stages
"
, rec_stages=[1, 2, 3, 4, 5]).
-
"
default
"
: to select the best tracks (the first ones) corresponding to a specific
reconstruction algorithm (JGandalf, Jshowerfit, etc). This requires rec_type input.
Example: best_track(my_tracks, strategy=
"
default
"
, rec_type=
"
JPP_RECONSTRUCTION_TYPE
"
).
rec_type : str, optional
reconstruction type as defined in the official KM3NeT-Dataformat.
rec_stages : list, optional
list of the reconstruction stages. Example: [1, 2, 3, 4, 5]
Returns
-------
class km3io.offline.OfflineBranch
tracks class with the desired
"
best tracks
"
selection.
"""
if
strategy
==
"
first
"
:
return
tracks
[:,
0
]
...
...
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