Calibration of Timeslice Hits
fversari wrote:
Hi everyone, I’m trying to use:
cal = kp.calib.Calibration(filename=”KM3NeT_00000036_05062018.detx”) –> .detx of the old ORCA DU1 in the dark room at CPPM (obtained with: “km3pipe detx 36”)
hits = blob[‘TSHits’]
calibrated_hits = cal.apply(hits)
using the “kp.io.jpp.TimeslicePump", but I obtain this error:
Traceback (most recent call last):
File “./test_km3pipe.py”, line 58, in <module>
pipe.drain(100)
File “/pbs/throng/km3net/src/python/python_env/versions/3.6.5/lib/python3.6/site-packages/km3pipe/core.py”, line 199, in drain
return self._drain(cycles)
File “/pbs/throng/km3net/src/python/python_env/versions/3.6.5/lib/python3.6/site-packages/km3pipe/core.py”, line 175, in _drain
self.blob = module(self.blob)
File “/pbs/throng/km3net/src/python/python_env/versions/3.6.5/lib/python3.6/site-packages/km3pipe/core.py”, line 372, in call
return self.process(*args, **kwargs)
File “./test_km3pipe.py”, line 40, in process
calibrated_hits = cal.apply(hits)
File “/pbs/throng/km3net/src/python/python_env/versions/3.6.5/lib/python3.6/site-packages/km3pipe/calib.py”, line 114, in apply
return self._apply_to_hits(hits)
File “/pbs/throng/km3net/src/python/python_env/versions/3.6.5/lib/python3.6/site-packages/km3pipe/calib.py”, line 141, in _apply_to_hits
hits.time += t0
TypeError: Cannot cast ufunc add output from dtype(‘float64’) to dtype(‘int32’) with casting rule ‘same_kind’
maybe the detx file is wrong ? (I’m running it at cc-Lyon with Python 3.6.5 and JPP v10)