Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/gcallah/indras_net
Browse files Browse the repository at this point in the history
  • Loading branch information
pjung16 committed Oct 7, 2019
2 parents 6acd568 + f1e0843 commit 83011c5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions models/bacteria.py
@@ -1,14 +1,14 @@
"""
This is the model that stimulate the behavior
This is the model that stimulates the behavior
of bacterias according to toxin and nutrients level.
"""

from indra.utils import get_props
from indra.agent import Agent
from indra.composite import Composite
from indra.space import DEF_HEIGHT, DEF_WIDTH, distance
from indra.env import Env
from indra.display_methods import RED, GREEN, YELLOW
from indra.env import Env
from indra.space import DEF_HEIGHT, DEF_WIDTH, distance
from indra.utils import get_props
from random import randint
import sys

Expand Down
3 changes: 1 addition & 2 deletions models/coop.py
Expand Up @@ -99,8 +99,7 @@ def exchange(coop_env):
def distribute_coupons(agent):
"""
Distribute coupons from central bank randomly to each babysitter.
Each babysitter's coupons are gaussian distributed based on extra_coupons
and extra_dev.
Coupons are gaussian distributed based on extra_coupons and extra_dev.
"""

for i in range(4):
Expand Down
3 changes: 3 additions & 0 deletions models/fashion.py
Expand Up @@ -62,6 +62,9 @@


def change_color(agent, society, opp_group):
"""
change agent's DISPLAY_COLOR to its opposite color
"""
agent[DISPLAY_COLOR] = not agent[DISPLAY_COLOR]
society.add_switch(agent, agent.primary_group(),
opp_group[str(agent.primary_group())])
Expand Down

0 comments on commit 83011c5

Please sign in to comment.