Beispiel #1
0
def main():
    from minty.utils import init_root
    from minty.utils.logger import log_level
    from logging import DEBUG
    with log_level(DEBUG):
        init_root()
        Engine().run()
Beispiel #2
0
    
    return result
        

def main(options, treename, input_file):
    leaves = get_leaves(treename, input_file)
    
    lbp = by_prefix(leaves)
    
    from pprint import pprint
    pprint(lbp)
    
    return
    
    for prefix, leaves in sorted(by_prefix(leaves).iteritems()):
        print prefix
        for leaf in sorted(leaves):
            print "", leaf

if __name__ == "__main__":
    import sys
    init_root()
    from optparse import OptionParser
    from IPython.Shell import IPShellEmbed; ip = IPShellEmbed(["-pdb"])
    optparser = OptionParser()
    opts, args = optparser.parse_args(sys.argv)
    args = args[1:]
    if len(args) != 2:
        optparser.error("Please specify a treename and a root file")
    main(opts, *args)