Source code for kprinttree

#!/usr/bin/env python
# coding=utf-8
# Filename: kprinttree.py
# Author: Tamas Gal <tgal@km3net.de>
"""
Print the available ROOT trees.

Usage:
    KPrintTree -f FILENAME
    KPrintTree (-h | --help)

Options:
    -f FILENAME  The file to print (;
    -h --help    Show this screen.

"""
import warnings

with warnings.catch_warnings():
    for warning_category in (FutureWarning, DeprecationWarning):
        warnings.simplefilter("ignore", category=warning_category)
    import uproot3






[docs] def main(): from docopt import docopt args = docopt(__doc__) print_tree(args["-f"])
if __name__ == "__main__": main()