Module ImportFrom alias ImportFrom alias ImportFrom alias alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Return Assign NameStore Dict Str Str Str Str Str Num Str Num If CompareEq AttributeLoad NameLoad attr Num body Assign SubscriptStore NameLoad Index Str Str orelse Assign SubscriptStore NameLoad Index Str Str Return NameLoad decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Num Num Num Num Assign NameStore Call NameLoad ListLoad Dict Str Str Str Str Assign NameStore Call NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad Str Num Num Num Num Num Expr Call AttributeLoad NameLoad attr
N/A Schelling SchellingModel mesa.visualization.ModularVisualization ModularServer mesa.visualization.modules CanvasGrid ChartModule TextElement HappyElement N/A TextElement N/A N/A 
    Display a text count of how many happy agents there are.
     __init__ N/A N/A self N/A N/A N/A N/A render N/A N/A self model N/A N/A N/A N/A Happy agents:  N/A str N/A model happy N/A N/A schelling_draw N/A N/A agent N/A N/A N/A 
    Portrayal Method for canvas
     N/A N/A agent None N/A N/A N/A portrayal N/A Shape r Filled Layer circle 0.5 true 0 N/A N/A N/A agent type 0 N/A N/A N/A portrayal N/A Color Red N/A N/A N/A portrayal N/A Color Blue N/A portrayal N/A N/A happy_element N/A HappyElement N/A canvas_element N/A CanvasGrid schelling_draw 20 20 500 500 N/A happy_chart N/A ChartModule N/A N/A Label Color happy Black N/A server N/A ModularServer SchellingModel N/A canvas_element happy_element happy_chart Schelling 20 20 0.8 0.2 4 N/A N/A N/A server launch