forked from ecbtln/dynamics_sim
-
Notifications
You must be signed in to change notification settings - Fork 3
Run Simulations
Andrew F edited this page Jul 9, 2015
·
10 revisions
See below for an example Run Simulations page, parts which you can customize are Bolded, with options in italics
from wrapper import GameDynamicsWrapper, VariedGame
from dynamics.wright_fisher import WrightFisher
from games.humbly_signaling import Costly_Signaling
import unittest
class TestCase(unittest.TestCase):
def setUp(self):
import logging
logging.basicConfig(filename='debug.log', level=logging.DEBUG)
def test_single_simulation(self):#Runs the program and outputs time plot
s = GameDynamicsWrapper(Costly_Signaling, WrightFisher)
s.simulate(num_gens=50, graph=dict(NAME=True))
if __name__ == '__main__':
unittest.main()