Skip to content
Snippets Groups Projects
Verified Commit 811964ac authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Remove debug block for overflow error

parent 057ba958
No related branches found
No related tags found
No related merge requests found
Pipeline #33993 passed
......@@ -204,18 +204,7 @@ class ZTPlot(kp.Module):
if trig_check(int(trigger_mask))
])
try:
dt = datetime.utcfromtimestamp(utc_timestamp)
except OverflowError:
self.log.critical("OverflowError encountered when converting '%s' to "
"a datetime object.", utc_timestamp)
rawdata_filename = "/data/IO_EVT_overflowerror_{:08d}_{:08d}_FI{}_TC{}.dat".format(
det_id, run_id, frame_index, trigger_counter)
self.log.critical("Dumping raw data to: %s and exiting.", rawdata_filename)
with open(rawdata_filename, "wb") as fobj:
fobj.write(raw_data)
exit(1)
dt = datetime.utcfromtimestamp(utc_timestamp)
delta_t = (datetime.utcnow() - dt).seconds
if abs(delta_t) > 60*5:
self.log.warning("The timestamp-delta of the event is '%s'", delta_t)
......
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