km3pipe.io.aanet
¶
Pump for the Aanet data format.
This is undoubtedly the ugliest module in the entire framework. If you have a way to read aanet files via the Jpp interface, your pull request is more than welcome!
Module Contents¶
Classes¶
AanetPump () |
A pump for binary Aanet files. |
MetaParser (filename=None, string=None) |
A class which parses the JPrintMeta output for a given filenam |
-
class
km3pipe.io.aanet.
AanetPump
[source]¶ Bases:
km3pipe.core.Pump
A pump for binary Aanet files.
Parameters: - filename: str, optional
Name of the file to open. If this parameter is not given,
filenames
needs to be specified instead.- ignore_hits: bool, optional [default=False]
If true, don’t read our the hits/mchits.
- bare: bool, optional [default=False]
Do not create KM3Pipe specific data, just wrap the bare aanet API. This will only give you
blob['evt']
.
-
class
km3pipe.io.aanet.
MetaParser
(filename=None, string=None)[source]¶ Bases:
object
A class which parses the JPrintMeta output for a given filenam
-
get_table
(self, name='Meta', h5loc='/meta')[source]¶ Convert metadata to a KM3Pipe Table.
Returns None if there is no data.
Each column’s dtype will be set to a fixed size string (numpy.string_) with the length of the longest entry, since writing variable length strings does not fit the current scheme.
-