From c9ae3ebad1b7473c09b7f2cae14a94cc57294c02 Mon Sep 17 00:00:00 2001 From: Wang Boyu Date: Wed, 17 Jan 2024 19:33:42 +0800 Subject: [PATCH] gis: update examples for mesa-geo v0.7.0 --- gis/agents_and_networks/requirements.txt | 2 +- gis/geo_schelling/requirements.txt | 2 +- gis/geo_schelling_points/requirements.txt | 2 +- gis/geo_sir/model.py | 2 -- gis/geo_sir/requirements.txt | 2 +- gis/population/requirements.txt | 2 +- gis/rainfall/requirements.txt | 2 +- gis/urban_growth/requirements.txt | 2 +- 8 files changed, 7 insertions(+), 9 deletions(-) diff --git a/gis/agents_and_networks/requirements.txt b/gis/agents_and_networks/requirements.txt index 20fef74a..e86259fe 100644 --- a/gis/agents_and_networks/requirements.txt +++ b/gis/agents_and_networks/requirements.txt @@ -2,7 +2,7 @@ -e . # external requirements -mesa-geo~=0.6.0 +mesa-geo~=0.7 geopandas numpy pandas diff --git a/gis/geo_schelling/requirements.txt b/gis/geo_schelling/requirements.txt index 3e795840..96935875 100644 --- a/gis/geo_schelling/requirements.txt +++ b/gis/geo_schelling/requirements.txt @@ -1 +1 @@ -mesa-geo~=0.6.0 +mesa-geo~=0.7 diff --git a/gis/geo_schelling_points/requirements.txt b/gis/geo_schelling_points/requirements.txt index 3e795840..96935875 100644 --- a/gis/geo_schelling_points/requirements.txt +++ b/gis/geo_schelling_points/requirements.txt @@ -1 +1 @@ -mesa-geo~=0.6.0 +mesa-geo~=0.7 diff --git a/gis/geo_sir/model.py b/gis/geo_sir/model.py index d6265e94..d9d49585 100644 --- a/gis/geo_sir/model.py +++ b/gis/geo_sir/model.py @@ -103,8 +103,6 @@ def step(self): self.steps += 1 self.reset_counts() self.schedule.step() - # Recalculate spatial tree, because agents are moving - self.space._recreate_rtree() self.datacollector.collect(self) diff --git a/gis/geo_sir/requirements.txt b/gis/geo_sir/requirements.txt index 3e795840..96935875 100644 --- a/gis/geo_sir/requirements.txt +++ b/gis/geo_sir/requirements.txt @@ -1 +1 @@ -mesa-geo~=0.6.0 +mesa-geo~=0.7 diff --git a/gis/population/requirements.txt b/gis/population/requirements.txt index 3e795840..96935875 100644 --- a/gis/population/requirements.txt +++ b/gis/population/requirements.txt @@ -1 +1 @@ -mesa-geo~=0.6.0 +mesa-geo~=0.7 diff --git a/gis/rainfall/requirements.txt b/gis/rainfall/requirements.txt index 3e795840..96935875 100644 --- a/gis/rainfall/requirements.txt +++ b/gis/rainfall/requirements.txt @@ -1 +1 @@ -mesa-geo~=0.6.0 +mesa-geo~=0.7 diff --git a/gis/urban_growth/requirements.txt b/gis/urban_growth/requirements.txt index 3e795840..96935875 100644 --- a/gis/urban_growth/requirements.txt +++ b/gis/urban_growth/requirements.txt @@ -1 +1 @@ -mesa-geo~=0.6.0 +mesa-geo~=0.7