Skip to content
Snippets Groups Projects
Commit 080a3564 authored by Stefan Reck's avatar Stefan Reck
Browse files

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
Tags v3.2.3
1 merge request!29add skip for no hits and warn
......@@ -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
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment