RTND/py/main.py
def print_paras(mp:mypara.ParaClass,gl:gpc.GloParaClass):
    """
    main program to print parameters uses
    """
    py_para_file= mp.output_folder + "\\python_para.txt"
    with open(py_para_file,"w+") as f:
        for i in gl.para_dict:
           print("{0},{1}".format(i,gl.para_dict[i]),file=f)
        print("ExpId,{0}".format(gl.exp_id),file=f)
        print("TestIndex,{0}".format(gl.test_index),file=f)
        print("ChangeFreLin,{0}".format(gl.change_fre_line),file=f)
        print("FreLb,{0}".format(gl.fre_lb),file=f)
        print("FreUb,{0}".format(gl.fre_up),file=f)
        print("FleetSize,{0}".format(gl.fleetsize),file=f)
        print("IncreFreStep,{0}".format(gl.incre),file=f)           
        print("AbcPop,{0}".format(gl.abc_npop),file=f)
        print("AbcOnlooker,{0}".format(gl.abc_onlooker),file=f)
        print("AbcLimit,{0}".format(gl.abc_limit),file = f)
        print("AbcIter,{0}".format(gl.abc_iter),file = f)
        print("Rio,{0}".format(gl.para_dict["Rio"]),file=f)
        print("BaseFre=[{0},{1},{2},{3}]".format(gl.base_fre[0],gl.base_fre[1],gl.base_fre[2],gl.base_fre[3]),file=f)

    main program to print parameters uses
    
main program to print parameters uses
main program to print parameters uses
def print_paras(mp:mypara.ParaClass,gl:gpc.GloParaClass):
    py_para_file= mp.output_folder + "\\python_para.txt"
    with open(py_para_file,"w+") as f:
        for i in gl.para_dict:
           print("{0},{1}".format(i,gl.para_dict[i]),file=f)
        print("ExpId,{0}".format(gl.exp_id),file=f)
        print("TestIndex,{0}".format(gl.test_index),file=f)
        print("ChangeFreLin,{0}".format(gl.change_fre_line),file=f)
        print("FreLb,{0}".format(gl.fre_lb),file=f)
        print("FreUb,{0}".format(gl.fre_up),file=f)
        print("FleetSize,{0}".format(gl.fleetsize),file=f)
        print("IncreFreStep,{0}".format(gl.incre),file=f)           
        print("AbcPop,{0}".format(gl.abc_npop),file=f)
        print("AbcOnlooker,{0}".format(gl.abc_onlooker),file=f)
        print("AbcLimit,{0}".format(gl.abc_limit),file = f)
        print("AbcIter,{0}".format(gl.abc_iter),file = f)
        print("Rio,{0}".format(gl.para_dict["Rio"]),file=f)
        print("BaseFre=[{0},{1},{2},{3}]".format(gl.base_fre[0],gl.base_fre[1],gl.base_fre[2],gl.base_fre[3]),file=f)
def print_paras ( mp : mypara . ParaClass , gl : gpc . GloParaClass ) : py_para_file = mp . output_folder + "\\python_para.txt" with open ( py_para_file , "w+" ) as f : for i in gl . para_dict : print ( "{0},{1}" . format ( i , gl . para_dict [ i ] ) , file = f ) print ( "ExpId,{0}" . format ( gl . exp_id ) , file = f ) print ( "TestIndex,{0}" . format ( gl . test_index ) , file = f ) print ( "ChangeFreLin,{0}" . format ( gl . change_fre_line ) , file = f ) print ( "FreLb,{0}" . format ( gl . fre_lb ) , file = f ) print ( "FreUb,{0}" . format ( gl . fre_up ) , file = f ) print ( "FleetSize,{0}" . format ( gl . fleetsize ) , file = f ) print ( "IncreFreStep,{0}" . format ( gl . incre ) , file = f ) print ( "AbcPop,{0}" . format ( gl . abc_npop ) , file = f ) print ( "AbcOnlooker,{0}" . format ( gl . abc_onlooker ) , file = f ) print ( "AbcLimit,{0}" . format ( gl . abc_limit ) , file = f ) print ( "AbcIter,{0}" . format ( gl . abc_iter ) , file = f ) print ( "Rio,{0}" . format ( gl . para_dict [ "Rio" ] ) , file = f ) print ( "BaseFre=[{0},{1},{2},{3}]" . format ( gl . base_fre [ 0 ] , gl . base_fre [ 1 ] , gl . base_fre [ 2 ] , gl . base_fre [ 3 ] ) , file = f )
main program to print parameters uses
main program to print parameters uses
"""
    main program to print parameters uses
    """
mp
mypara.ParaClass
gl
gpc.GloParaClass