Skip to content
Snippets Groups Projects
Commit 35b1d8e3 authored by Daniel Guderian's avatar Daniel Guderian
Browse files

add skip for no hits and warn

parent add2b435
No related branches found
No related tags found
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