예제 #1
0
파일: main.py 프로젝트: corback/soa
def run(gephi_stuff): # the Highest function
    global count_steps
    config.set_g(gephi_stuff['g'])
    config.set_gephi(gephi_stuff)
    initialize()
    while not termination_condition():
        step()
    end()
예제 #2
0
파일: main.py 프로젝트: stablum/soa
def series(gephi_stuff): # the Highest function (hehe)
    print "series!"
    config.set_g(gephi_stuff['g'])
    config.set_gephi(gephi_stuff)
    gi.save_weights()
    for run_num in range(0, config.runs_per_series):
        stats.run_num = run_num
        simulation_run()
        stats.write_history()