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
080a3564
Commit
080a3564
authored
3 years ago
by
Stefan Reck
Browse files
Options
Downloads
Plain Diff
Merge branch 'add-skip' into 'master'
add skip for no hits and warn See merge request
!29
parents
add2b435
35b1d8e3
Branches
1-addition-to-readme
Branches containing commit
Tags
v3.2.3
Tags containing commit
1 merge request
!29
add skip for no hits and warn
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
orcasong/modules.py
+4
-1
4 additions, 1 deletion
orcasong/modules.py
with
4 additions
and
1 deletion
orcasong/modules.py
+
4
−
1
View file @
080a3564
...
...
@@ -76,6 +76,9 @@ class TimePreproc(kp.Module):
self
.
_print_flags
=
set
()
def
process
(
self
,
blob
):
if
not
"
Hits
"
in
blob
:
self
.
log
.
warn
(
"
One event doesn
'
t have hits for some reason. Sad. Skipping.
"
)
return
if
self
.
add_t0
:
blob
=
self
.
add_t0_time
(
blob
)
if
self
.
center_time
:
...
...
@@ -471,7 +474,7 @@ class DetApplier(kp.Module):
"
errors with t0.
"
)
self
.
_calib_checked
=
True
blob
[
"
Hits
"
]
=
self
.
calib
.
apply
(
blob
[
"
Hits
"
],
correct_slewing
=
self
.
correct_timeslew
)
...
...
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