Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OrcaSong
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Machine Learning
OrcaSong
Commits
8dd2e144
Commit
8dd2e144
authored
3 years ago
by
Stefan Reck
Browse files
Options
Downloads
Patches
Plain Diff
docs
parent
6e64e646
No related branches found
Branches containing commit
Tags
v0.7.0
Tags containing commit
1 merge request
!26
bundles extractor update for h5extractf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
orcasong/core.py
+5
-0
5 additions, 0 deletions
orcasong/core.py
orcasong/modules.py
+1
-0
1 addition, 0 deletions
orcasong/modules.py
with
6 additions
and
0 deletions
orcasong/core.py
+
5
−
0
View file @
8dd2e144
...
...
@@ -115,6 +115,7 @@ class BaseProcessor:
self
.
extractor
=
extractor
self
.
det_file
=
det_file
# TODO automatically skip correct_mc_time if there is no mc
self
.
correct_mc_time
=
correct_mc_time
self
.
center_time
=
center_time
self
.
calib_hits
=
calib_hits
...
...
@@ -123,6 +124,8 @@ class BaseProcessor:
self
.
correct_timeslew
=
correct_timeslew
self
.
center_hits_to
=
center_hits_to
self
.
event_skipper
=
event_skipper
# TODO chunksize default of 32 is way to little for graph mode,
# since thats only 32 hits per chunk
self
.
chunksize
=
chunksize
self
.
keep_event_info
=
keep_event_info
self
.
overwrite
=
overwrite
...
...
@@ -379,6 +382,7 @@ class FileGraph(BaseProcessor):
----------
hit_infos : tuple, optional
Which entries in the
'
/Hits
'
Table will be kept. E.g. pos_x, time, ...
Often, only dir_x/y/z, pos_x/y/z and time are required.
Default: Keep all entries.
time_window : tuple, optional
Two ints (start, end). Hits outside of this time window will be cut
...
...
@@ -389,6 +393,7 @@ class FileGraph(BaseProcessor):
Maximum number of hits that gets saved per event. If an event has
more, some will get cut randomly! Default: Keep all hits.
fixed_length : bool
Legacy option.
If False (default), save hits of events with variable length as
2d arrays using km3pipe
'
s indices.
If True, pad hits of each event with 0s to a fixed length,
...
...
This diff is collapsed.
Click to expand it.
orcasong/modules.py
+
1
−
0
View file @
8dd2e144
...
...
@@ -368,6 +368,7 @@ class PointMaker(kp.Module):
# store along new axis
points
=
np
.
expand_dims
(
points
,
0
)
else
:
# TODO points should be a Table, not a ndarray
points
=
np
.
zeros
(
(
len
(
hits
),
len
(
self
.
hit_infos
)),
dtype
=
"
float32
"
)
for
i
,
which
in
enumerate
(
self
.
hit_infos
):
...
...
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