Detx version 5 not supported
Summary
When processing the new v7.0 production for ORCA ORCA v7 I founded an error because it uses new DETX version not supported by km3pipe.
Environment
- KM3Pipe version: KM3Pipe 9.11.4
- Python version: Python 3.7.5
- OS: Linux cca007 3.10.0-1160.59.1.el7.x86_64 #1 (closed) SMP Wed Feb 23 16:47:03 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
- Jpp version: 13.0.0
Describe the current bug behavior
Trying to extract variables from a file in /sps/km3net/repo/mc/atm_neutrino/KM3NeT_00000049/v7.0/reco/
for PID studies using the corresponding detector file in /sps/km3net/repo/data/KM3NeT_00000049/v7.0/detectors/KM3NeT_00000049_RUNNUMBER.v7.0_PMTeff_merge8.K40.detx
leads to a crash because detx v5 is not supported.
Steps to reproduce
git clone git@git.km3net.de:parapid/newhitfeatures.git
cd newhitfeatures && make
cd scripts
python extractor.py -f /sps/km3net/repo/mc/atm_neutrino/KM3NeT_00000049/v7.0/reco/mcv7.0.gsg_tau-CC_3-100GeV.km3sim.jterbr00007224.jorcarec.1.root -d /sps/km3net/repo/data/KM3NeT_00000049/v7.0/detectors/KM3NeT_00000049_00007224.v7.0_PMTeff_merge8.K40.detx -dir . -jg -hf
Relevant logs and/or screenshots
Traceback (most recent call last):
File "/pbs/home/v/vicacuen/.local/lib/python3.7/site-packages/km3pipe/hardware.py", line 138, in _parse_header
self.det_id, self.n_doms = split(first_line, int)
File "/pbs/home/v/vicacuen/.local/lib/python3.7/site-packages/km3pipe/tools.py", line 173, in split
return [callback(i) for i in string.split(sep)]
File "/pbs/home/v/vicacuen/.local/lib/python3.7/site-packages/km3pipe/tools.py", line 173, in <listcomp>
return [callback(i) for i in string.split(sep)]
ValueError: invalid literal for int() with base 10: 'V5'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/sps/km3net/users/vicacuen/km3net/repo/PID/newhitfeatures/scripts/extractor.py", line 148, in <module>
main()
File "/sps/km3net/users/vicacuen/km3net/repo/PID/newhitfeatures/scripts/extractor.py", line 140, in main
pipe.attach(HitPdfModule, recos=recos, detx=DETX)
File "/pbs/home/v/vicacuen/.local/lib/python3.7/site-packages/thepipe/core.py", line 283, in attach
module = fac(name=name, **kwargs)
File "/pbs/home/v/vicacuen/.local/lib/python3.7/site-packages/thepipe/core.py", line 91, in __init__
self.configure()
File "/pbs/home/v/vicacuen/.local/lib/python3.7/site-packages/newhitfeatures/HitPdfModules.py", line 54, in configure
self.cali = kp.calib.Calibration(filename=detx)
File "/pbs/home/v/vicacuen/.local/lib/python3.7/site-packages/thepipe/core.py", line 91, in __init__
self.configure()
File "/pbs/home/v/vicacuen/.local/lib/python3.7/site-packages/km3pipe/calib.py", line 98, in configure
self.detector = Detector(filename=self.filename)
File "/pbs/home/v/vicacuen/.local/lib/python3.7/site-packages/km3pipe/hardware.py", line 76, in __init__
self._init_from_file(filename)
File "/pbs/home/v/vicacuen/.local/lib/python3.7/site-packages/km3pipe/hardware.py", line 102, in _init_from_file
self._parse()
File "/pbs/home/v/vicacuen/.local/lib/python3.7/site-packages/km3pipe/hardware.py", line 161, in _parse
self._parse_header()
File "/pbs/home/v/vicacuen/.local/lib/python3.7/site-packages/km3pipe/hardware.py", line 146, in _parse_header
"DETX version {} not supported yet".format(self.version)
NotImplementedError: DETX version 5 not supported yet