icecube.dataio.pprint module¶
- icecube.dataio.pprint.format_detail(frame, key)¶
Given an icecube frame and a key in that frame, return a human-readable string that describes the item in detail.
- icecube.dataio.pprint.format_line(frame, key, maxwidth=None, ellipsis='...')¶
Given an icecube frame and a key in that frame, return exactly one line of text describing the I3FrameObject with that key. Try to make the text as useful to a human reader as possible.
If accessing the object generates an exception, catch it and return its description.
Clip to an optional maximum width with a trailing ellipsis
- icecube.dataio.pprint.format_size(frame, key)¶
Given an icecube frame and a key in that frame, return the size of the string.
- Default converts the string in Kilo, Mega, or GigaByte.
Adjust conversion to different formats by supplying the list with given unit names.
- icecube.dataio.pprint.format_xml(frame, key)¶
Given an icecube frame and a key in that frame, return the xml serialization of the item.