We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de5cda9 commit d4b18cdCopy full SHA for d4b18cd
gis/urban_growth/urban_growth/model.py
@@ -2,6 +2,7 @@
2
3
import mesa
4
import numpy as np
5
+from mesa import DataCollector
6
7
from .space import City
8
@@ -52,9 +53,10 @@ def __init__(
52
53
cell.road_pixel = None
54
cell.model = self
55
- self.initialize_data_collector(
56
+ self.datacollector = DataCollector(
57
model_reporters={"Percentage Urbanized": "pct_urbanized"}
58
)
59
+ self.datacollector.collect(self)
60
61
@property
62
def pct_urbanized(self) -> float:
0 commit comments