def run_arch_test_suite(arch=[], optproblems=[]): 
    """Runs the architectures against optproblems and records the results.
    
    arch: list of Architectures 
        The architectures to test.
        
    optproblems: list of OptProblems 
        The OptProblems to use for testing the Architectures. 
    """
    
    compat_data = {}
    
    for p in optproblems: 
        arch_data = {}
        prob_name = p.__class__.__name__

        converge_file = open('%s_convergence_data.py'%prob_name,'w')
        
        for a in arch:
            prob = set_as_top(p.__class__())
            arch_name = a.__class__.__name__
            
            prob.architecture = a.__class__()
            recorders = [DBCaseRecorder()]
            prob.architecture.data_recorders = recorders
            
            
            print "Testing %s on %s"%(arch_name,prob_name), "...", 
            try:
                prob.check_config()
                arch_data[p] = True
                
            except RuntimeError: 
                arch_data[p] = False #not compatible, so just move on
                print "Incompatible"
                #raise err
                continue 
                           
            prob.run()
            print "Success"
            
            des_vars = prob.get_des_vars_by_comp()
            print "  Function Evaluations (Derivative Evaluations): "
            for comp_name in des_vars: 
                comp = prob.get(comp_name)
                print (comp_name,comp.exec_count,comp.derivative_exec_count)%"    %s: %d (%d)"
            print "  Errors: "
            for k,v in prob.check_solution().iteritems(): 
                print "    ",k,": ",v
            #print prob.check_solution()

            iter_data = prob.architecture.data_recorders[0].get_iterator()
            data = [case['Objective'] for case in iter_data]
            #converge_file.write('%s = %s'%(arch_name,str(data)))
            print >> converge_file, '%s = %s'%(arch_name,str(data))
            print 
            
        compat_data[a] = arch_data
        
    return compat_data
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.lib/src/openmdao/lib/architectures/mdao_test_suite.py/run_arch_test_suite/swapped operands of `%`