Example #1
0
        if option == "-h":
            print __doc__
            sys.exit()
        else:
            sys.exit("Unknown option " + option)

    if not args:
        print __doc__
        sys.exit("No argument file given")

    prots = []

    for i in args:
        fp = pylib_io.flexopen(i, "r")
        print "Parsing: ", i
        prot = pylib_eprot.eprot(i)
        prot.parse()
        pylib_io.flexclose(fp)
        prots.append(prot)

    filter_common_successes(prots)
    filter_common_search(prots)
    print prots[0].results_no()
    #filter_hard_problems(prots, 4, 5000)
    #print prots[0].results_no()

    #for res in prots[0].results.keys():
    #    print prots[0].result(res).values[2], prots[11].result(res).values[2]

    #for res in prots[0].results.keys():
    #   print prots[0].result(res)
Example #2
0
    for option, optarg in opts:
        if option == "-h":
            print __doc__
            sys.exit()
        elif option == "-s":
            step = float(optarg)
        elif option == "-l":
            limit = float(optarg)
        else:
            sys.exit("Unknown option "+ option)

    res = []
    strats = []

    for prot in args:
        p = pylib_eprot.eprot(prot)        
        p.parse(os.path.dirname(prot))
        res.append(p.get_performance_plot(step, limit))

    print "# Column 1: Time step"
    count = 2
    for prot in args:
        print "# Column %d: %s"%(count, prot)
        count = count+1
    for i in xrange(len(res[0])):
        print "%6.2f"%(res[0][i][0],),
        for j in xrange(len(res)):
            print "%6d"%(res[j][i][1]),
        print
        
Example #3
0
            print __doc__
            sys.exit()
        else:
            sys.exit("Unknown option "+ option)

    if not args: 
        print __doc__
        sys.exit("No argument file given")
       

    prots = []

    for i in args:
        fp = pylib_io.flexopen(i, "r")
        print "Parsing: ",i 
        prot = pylib_eprot.eprot(i)
        prot.parse();        
        pylib_io.flexclose(fp)
        prots.append(prot)
        
    
    filter_common_successes(prots)        
    filter_common_search(prots)
    print prots[0].results_no()
    # filter_hard_problems(prots, 4, 1000)
    # print prots[0].results_no()

    #for res in prots[0].results.keys():
    #    print prots[3].result(res).values[12], prots[5].result(res).values[12],\
    #          prots[3].result(res).values[13], prots[5].result(res).values[13]
        
Example #4
0
        if option == "-h":
            print __doc__
            sys.exit()
        elif option == "-s":
            step = float(optarg)
        elif option == "-l":
            limit = float(optarg)
        else:
            sys.exit("Unknown option "+ option)

    res = []
    strats = []

    for prot in args:
        print prot
        p = pylib_eprot.eprot(prot)        
        p.parse(os.path.dirname(prot))
        res.append(p.get_performance_plot(step, limit))

    print "# Column 1: Time step"
    count = 2
    for prot in args:
        print "# Column %d: %s"%(count, prot)
        count = count+1
    for i in xrange(len(res[0])):
        print "%6.2f"%(res[0][i][0],),
        for j in xrange(len(res)):
            print "%6d"%(res[j][i][1]),
        print