Error with tohdf5
I get the following error when converting an .aanet.root
file to hdf5
:
(I tried reprocessing the file first, but the problem persists)
[kakiczi@cca002]/sps/km3net/users/kakiczi/CORSIKA_checks/SIBYLL-2.3/p/processed/mc/manual/KM3NeT_00000014/v5.0/reco% tohdf5 --ignore-hits mcv5
.0.DAT000050.propa.sirene.jte.jchain.aanet.50.root
++ tohdf5: Converting 'mcv5.0.DAT000050.propa.sirene.jte.jchain.aanet.50.root'...
WARNING ++ km3pipe.io.aanet.AanetPump.GenericPump: The following parameters were ignored: n_rows_expected
WARNING ++ km3pipe.io.hdf5.HDF5Sink.HDF5Sink: The following parameters were ignored: ignore_hits, use_jppy
Pipeline and module initialisation took 0.002s (CPU 0.000s).
loading root.... /usr/local/root/5.34.23/
loading aalib... /pbs/throng/km3net/src/Jpp/v10.1.11007/externals/aanet//libaa.so
++ km3pipe.io.aanet.AanetPump.GenericPump: Reading metadata using 'JPrintMeta'
WARNING ++ km3pipe.io.aanet.MetaParser: Empty metadata
WARNING ++ km3pipe.io.aanet.AanetPump.GenericPump: No metadata found, this means no data provenance!
Traceback (most recent call last):
File "/sps/km3net/users/tgal/python_envs/py-2.7/bin/tohdf5", line 10, in <module>
sys.exit(main())
File "/sps/km3net/users/tgal/python_envs/py-2.7/lib/python2.7/site-packages/km3pipe/utils/tohdf5.py", line 112, in main
ignore_hits=bool(ignore_hits_arg),
File "/sps/km3net/users/tgal/python_envs/py-2.7/lib/python2.7/site-packages/km3pipe/utils/tohdf5.py", line 72, in tohdf5
pipe.drain(n_events)
File "/sps/km3net/users/tgal/python_envs/py-2.7/lib/python2.7/site-packages/km3pipe/core.py", line 371, in drain
return self._drain(cycles)
File "/sps/km3net/users/tgal/python_envs/py-2.7/lib/python2.7/site-packages/km3pipe/core.py", line 321, in _drain
new_blob = module(blob_to_send)
File "/sps/km3net/users/tgal/python_envs/py-2.7/lib/python2.7/site-packages/km3pipe/core.py", line 581, in __call__
return self.process(*args, **kwargs)
File "/sps/km3net/users/tgal/python_envs/py-2.7/lib/python2.7/site-packages/km3pipe/io/hdf5.py", line 416, in process
data = self._process_entry(key, entry)
File "/sps/km3net/users/tgal/python_envs/py-2.7/lib/python2.7/site-packages/km3pipe/io/hdf5.py", line 406, in _process_entry
self._write_table(entry.h5loc, entry, title=title)
File "/sps/km3net/users/tgal/python_envs/py-2.7/lib/python2.7/site-packages/km3pipe/io/hdf5.py", line 338, in _write_table
tab.append(arr)
File "/sps/km3net/users/tgal/python_envs/py-2.7/lib/python2.7/site-packages/tables/table.py", line 2230, in append
"The error was: <%s>" % (str(self), exc))
ValueError: rows parameter cannot be converted into a recarray object compliant with table '/reco/jmuon (Table(13,), fletcher32, shuffle, zlib(5)) 'JMUON''. The error was: <When changing to a smaller dtype, its size must be a divisor of the size of original dtype>
Closing remaining open files:mcv5.0.DAT000050.propa.sirene.jte.jchain.aanet.50.root.h5...done
Edited by Piotr Kalaczynski