Skip to content

Commit

Permalink
rename uganda example model to population model
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-boyu committed Sep 16, 2022
1 parent f2c5028 commit 010f8f8
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Uganda Model
Population Model
==============

An implementation of the [Uganda Example](https://github.com/abmgis/abmgis/tree/master/Chapter05-GIS/Models/UgandaExample) in Python, using [Mesa](https://github.com/projectmesa/mesa) and [Mesa-Geo](https://github.com/projectmesa/mesa-geo).
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def step(self):
self.set_random_world_coord()


class Uganda(mesa.Model):
class Population(mesa.Model):
def __init__(
self,
population_gzip_file="data/popu.asc.gz",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from mesa_geo.visualization.ModularVisualization import ModularServer
from mesa_geo.visualization.modules import MapModule

from .model import Uganda
from .model import Population
from .space import UgandaCell


Expand Down Expand Up @@ -44,4 +44,6 @@ def agent_portrayal(agent):
)
num_agents_element = NumAgentsElement()

server = ModularServer(Uganda, [geospace_element, num_agents_element], "Uganda Model")
server = ModularServer(
Population, [geospace_element, num_agents_element], "Population Model"
)
File renamed without changes.
3 changes: 3 additions & 0 deletions examples/population/run.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from population.server import server

server.launch()
3 changes: 0 additions & 3 deletions examples/uganda/run.py

This file was deleted.

0 comments on commit 010f8f8

Please sign in to comment.